Commit graph

21 commits

Author SHA1 Message Date
Joachim Bauch
98a8465e12
Move Goroutines helpers to test package. 2026-01-08 10:23:59 +01:00
Joachim Bauch
62587796ce
Move logging code to separate package. 2025-12-09 15:26:47 +01:00
Joachim Bauch
d8d17734cb
Improve use of testify assertions. 2025-12-05 11:13:09 +01:00
Joachim Bauch
4986122493
Run tests in parallel where possible. 2025-12-05 11:09:01 +01:00
Joachim Bauch
bfcabaa2fc
Wait for NATS client to be closed. 2025-11-20 10:14:48 +01:00
Joachim Bauch
6ca41dee61
Don't use global logger. 2025-11-20 09:42:40 +01:00
Joachim Bauch
639588f550
Modernize Go code and check from CI. 2025-08-14 09:23:25 +02:00
Joachim Bauch
83e50d030e
Don't use hardcoded sleeps when waiting for NATS disconnect / reconnect. 2025-04-16 15:09:56 +02:00
Joachim Bauch
1232bfb3b3
nats: Reconnect client indefinitely. 2025-03-05 16:41:11 +01:00
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