mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Should receive msgs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -161,6 +161,11 @@ func TestClusterQueueSubs(t *testing.T) {
|
||||
|
||||
// Send to B
|
||||
sendB("PUB foo 2\r\nok\r\n")
|
||||
|
||||
// Should receive 1 from B.
|
||||
matches = expectMsgsB(1)
|
||||
checkForQueueSid(t, matches, qg2Sids_b)
|
||||
|
||||
sendB("PING\r\n")
|
||||
expectB(pongRe)
|
||||
|
||||
@@ -239,8 +244,6 @@ func TestClusterDoubleMsgs(t *testing.T) {
|
||||
// Close ClientA1
|
||||
clientA1.Close()
|
||||
|
||||
// time.Sleep(time.Second)
|
||||
|
||||
sendB("PUB foo 2\r\nok\r\n")
|
||||
sendB("PING\r\n")
|
||||
expectB(pongRe)
|
||||
|
||||
Reference in New Issue
Block a user