mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -1852,10 +1852,14 @@ func TestServiceLatencyMissingResults(t *testing.T) {
|
||||
defer sub.Unsubscribe()
|
||||
|
||||
// Create sync listener for latency.
|
||||
lsub, _ := nc1.SubscribeSync("service.weather.latency")
|
||||
latSubj := "service.weather.latency"
|
||||
lsub, _ := nc1.SubscribeSync(latSubj)
|
||||
defer lsub.Unsubscribe()
|
||||
nc1.Flush()
|
||||
|
||||
// Make sure the subscription propagates to s2 server.
|
||||
checkSubInterest(t, s2, "weather", latSubj, time.Second)
|
||||
|
||||
// Create requestor on s2.
|
||||
nc2, err := nats.Connect(fmt.Sprintf("nats://%s:%s@%s:%d", "one", "password", opts2.Host, opts2.Port), nats.UseOldRequestStyle())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user