Skip to content

Commit 20fc2cd

Browse files
committed
test: improve flaky
Signed-off-by: Rueian <[email protected]>
1 parent e97899e commit 20fc2cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cluster_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6843,9 +6843,8 @@ func TestClusterClient_SendReadOperationToReplicaNodeWriteOperationToPrimaryNode
68436843
return e
68446844
},
68456845
}
6846-
primaryNodeConn.AcquireFn = func() wire {
6847-
return w
6848-
}
6846+
primaryNodeConn.AcquireFn = func() wire { return w }
6847+
replicaNodeConn.AcquireFn = func() wire { return w } // Subscribe can work on replicas
68496848
if err := client.Dedicated(func(c DedicatedClient) error {
68506849
return c.Receive(context.Background(), c.B().Subscribe().Channel("a").Build(), func(msg PubSubMessage) {})
68516850
}); err != e {

0 commit comments

Comments
 (0)