mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
The loopback NATS client can not leak goroutines.
This commit is contained in:
parent
892dae6842
commit
f7b9224bda
1 changed files with 16 additions and 20 deletions
|
|
@ -63,34 +63,30 @@ func CreateLoopbackNatsClientForTest(t *testing.T) NatsClient {
|
|||
return result
|
||||
}
|
||||
|
||||
func TestLoopbackNatsClient_Subscribe(t *testing.T) { // nolint:paralleltest
|
||||
ensureNoGoroutinesLeak(t, func(t *testing.T) {
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
func TestLoopbackNatsClient_Subscribe(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testNatsClient_Subscribe(t, client)
|
||||
})
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
testNatsClient_Subscribe(t, client)
|
||||
}
|
||||
|
||||
func TestLoopbackClient_PublishAfterClose(t *testing.T) { // nolint:paralleltest
|
||||
ensureNoGoroutinesLeak(t, func(t *testing.T) {
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
func TestLoopbackClient_PublishAfterClose(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testNatsClient_PublishAfterClose(t, client)
|
||||
})
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
testNatsClient_PublishAfterClose(t, client)
|
||||
}
|
||||
|
||||
func TestLoopbackClient_SubscribeAfterClose(t *testing.T) { // nolint:paralleltest
|
||||
ensureNoGoroutinesLeak(t, func(t *testing.T) {
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
func TestLoopbackClient_SubscribeAfterClose(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testNatsClient_SubscribeAfterClose(t, client)
|
||||
})
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
testNatsClient_SubscribeAfterClose(t, client)
|
||||
}
|
||||
|
||||
func TestLoopbackClient_BadSubjects(t *testing.T) { // nolint:paralleltest
|
||||
ensureNoGoroutinesLeak(t, func(t *testing.T) {
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
func TestLoopbackClient_BadSubjects(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testNatsClient_BadSubjects(t, client)
|
||||
})
|
||||
client := CreateLoopbackNatsClientForTest(t)
|
||||
testNatsClient_BadSubjects(t, client)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue