Add more tests.

This commit is contained in:
Joachim Bauch
2021-06-04 15:30:55 +02:00
parent 762d1512c4
commit 1687c80122
2 changed files with 82 additions and 0 deletions
+24
View File
@@ -63,3 +63,27 @@ func TestLoopbackNatsClient_Subscribe(t *testing.T) {
testNatsClient_Subscribe(t, client)
})
}
func TestLoopbackClient_PublishAfterClose(t *testing.T) {
ensureNoGoroutinesLeak(t, func() {
client := CreateLoopbackNatsClientForTest(t)
testNatsClient_PublishAfterClose(t, client)
})
}
func TestLoopbackClient_SubscribeAfterClose(t *testing.T) {
ensureNoGoroutinesLeak(t, func() {
client := CreateLoopbackNatsClientForTest(t)
testNatsClient_SubscribeAfterClose(t, client)
})
}
func TestLoopbackClient_BadSubjects(t *testing.T) {
ensureNoGoroutinesLeak(t, func() {
client := CreateLoopbackNatsClientForTest(t)
testNatsClient_BadSubjects(t, client)
})
}