mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
@@ -52,15 +52,15 @@ func TestBasicTLSClusterPubSub(t *testing.T) {
|
||||
sendA("PING\r\n")
|
||||
expectA(pongRe)
|
||||
|
||||
if err := checkExpectedSubs(1, srvA, srvB); err != nil {
|
||||
t.Fatalf("%v", err)
|
||||
}
|
||||
|
||||
sendB, expectB := setupConn(t, clientB)
|
||||
sendB("PUB foo 2\r\nok\r\n")
|
||||
sendB("PING\r\n")
|
||||
expectB(pongRe)
|
||||
|
||||
if err := checkExpectedSubs(1, srvA, srvB); err != nil {
|
||||
t.Fatalf("%v", err)
|
||||
}
|
||||
|
||||
expectMsgs := expectMsgsCommand(t, expectA)
|
||||
|
||||
matches := expectMsgs(1)
|
||||
|
||||
@@ -820,6 +820,11 @@ func TestNewRouteQueueSubsDistribution(t *testing.T) {
|
||||
sendB("PING\r\n")
|
||||
expectB(pongRe)
|
||||
|
||||
// Each server should have its 100 local subscriptions, plus 1 for the route.
|
||||
if err := checkExpectedSubs(101, srvA, srvB); err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
|
||||
sender := createClientConn(t, optsA.Host, optsA.Port)
|
||||
defer sender.Close()
|
||||
send, expect := setupConn(t, sender)
|
||||
|
||||
Reference in New Issue
Block a user