Joachim Bauch
c642319514
Don't redefine built-in id "max".
2024-11-11 10:20:34 +01:00
Joachim Bauch
03cad99b8d
Switch to "github.com/stretchr/testify" for tests.
2024-09-03 13:50:52 +02:00
Joachim Bauch
0eb234b24d
Run tests in parallel and catch log output from tests.
2024-04-25 15:21:54 +02:00
Joachim Bauch
c134883138
Switch to atomic types from Go 1.19
2023-10-30 09:32:46 +01:00
Joachim Bauch
fd29f83454
Use "struct{}" channel if only used as signaling mechanism.
2023-06-15 11:30:28 +02:00
Joachim Bauch
0020076f2b
Run function to test for goroutine leaks as subtest.
...
This makes sure the test has been completely teared down before the
goroutines are counted and thus should prevent flaky failed tests.
2023-01-17 14:51:02 +01:00
Joachim Bauch
2a491ec3f0
Use "T.Cleanup()" instead of manually deferred shutdown function.
2022-04-05 12:57:40 +02:00
Joachim Bauch
60b11b1ba9
Don't start test until receiving goroutine is ready.
2021-06-08 09:44:53 +02:00
Joachim Bauch
c8886d03c9
Simplify loopback NATS client.
...
Only use one goroutine per client instead of one per subscription.
This ensures that (like with the "real" client), all messages are
processed in order across different subscriptions.
2021-06-07 16:53:26 +02:00
Joachim Bauch
1687c80122
Add more tests.
2021-06-04 15:30:55 +02:00
Joachim Bauch
762d1512c4
Remove unused "Request" method from NATS client.
2021-06-04 15:16:16 +02:00
Joachim Bauch
c91b0de254
Add tests for regular NATS client.
2021-06-04 15:13:33 +02:00