Commit Graph

41 Commits

Author SHA1 Message Date
Thomas Kohler 026fd03532
test: try to stabilize eventer tests (#1066) 2024-02-13 10:33:46 +01:00
Thomas Kohler aee81436c9
lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
Thomas Kohler 3039b2c7cb
test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 949392d8a7
Fix(core): Semantic Import Versioning for v2 (#921) 2023-05-20 14:25:21 +02:00
Thomas Kohler 80e9d4410e stabilize flaky utils_test 2022-10-23 15:17:48 +02:00
Thomas Kohler e7cb5c48ee Makefile: add check for examples, fix failed file, stabilize "every"-test 2022-10-11 08:42:15 +02:00
deadprogram ec2995974d test: increase some timings to make tests a little less fragile
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-09-25 12:06:08 +02:00
Ron Evans 355181843f core: add Rescale utility function for straight linear rescaling
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 17:06:52 +02:00
deadprogram 40b636706c test: avoid possibility of collide value in tests. I mean, what were the odds of that?
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-19 12:54:54 +02:00
deadprogram 5d326bd177 core: increase test coverage for utils
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-19 11:24:09 +02:00
deadprogram d1363746da core: eliminate potential race conditions from Events and Every functions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 20:32:02 +01:00
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
deadprogram 9faf9eb52a core: Use time.Sleep unless waiting for a timeout in a select
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-05 13:05:49 +01:00
deadprogram 79e787d516 test: update tests from linter errors
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-16 11:43:02 +02:00
deadprogram 0e25f29a1b core: Refactor events to use channels all the way down. Allows 'metal' development using Gobot libs.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram aa20799d2a [core] Don't cut it so close when testing Every being told to be done
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-05-13 17:36:34 -07:00
deadprogram 0276721523 [core] Return when Every is sent done on its channel
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-05-13 17:30:46 -07:00
deadprogram aab1461e0d [core] gobot.Every function now returns a channel so it can be halted
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-05-13 17:21:21 -07:00
gmarik fa2b126aa7 Fixes failing test 2016-02-23 00:54:47 -05:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
Kenny Levinsen 4164003de1 Save ~1000 goroutines
Previous code spawns ~1000 go-routines due to NewEvent. Removing a
goroutine and making the loop of callbacks happen directly in Write with
a lock reduces this to ~12 in my test.
2015-09-30 21:45:54 +02:00
Adrian Zankich be963f989c Increase gobot package test coverage 2014-11-30 00:19:53 -08:00
Adrian Zankich 56d396339b Fix randomly failing test 2014-10-28 15:50:32 -07:00
Adrian Zankich 84363c6699 Rename Expect to Assert and add Refute function 2014-07-17 11:41:47 -07:00
Adrian Zankich b5ec427892 Add Once test 2014-07-15 09:35:19 -07:00
Adrian Zankich c56f285abb Remove unused util functions 2014-06-15 17:32:19 -07:00
Adrian Zankich 56848d5a81 Clean up test_helper 2014-06-13 14:46:07 -07:00
Adrian Zankich cf175b9557 Update tests for api and core 2014-06-12 14:38:03 -07:00
Adrian Zankich 2a2a435a7c Update utils_test 2014-06-11 12:06:12 -07:00
Adrian Zankich db44941c21 Use new Event type for events 2014-06-11 11:37:20 -07:00
Adrian Zankich 57bb8bbce6 Fix default Interval initialization 2014-06-06 14:44:16 -07:00
Adrian Zankich 30b92ac39f Merge core_structure 2014-05-22 22:31:54 -07:00
Adrian Zankich e500296b96 After and Every now require a time.Duration instead of a string 2014-05-03 03:20:02 -07:00
Adrian Zankich eca3a1ca99 More WIP restructure 2014-04-30 08:10:44 -07:00
Adrian Zankich 90ee5d7d70 WIP project restructure 2014-04-29 13:20:32 -07:00
Matt Aimonetti d93231a9ee made tests fast again 2014-04-29 05:36:26 -07:00
Matt Aimonetti 73dcbc537f made tests fast again 2014-04-26 11:13:25 -06:00
Adrian Zankich 7969fbcbea Remove ConnectToTcp util 2014-04-16 12:38:09 -07:00
Adrian Zankich c1b684961c Add utils tests 2014-04-15 21:10:32 -07:00