Skip to content

Commit

Permalink
Fix flapping test
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Feb 28, 2023
1 parent bab10c1 commit e143cb0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/jetstream_super_cluster_test.go
Expand Up @@ -2082,14 +2082,9 @@ func TestJetStreamSuperClusterMovingStreamAndMoveBack(t *testing.T) {

toSend := 10_000
for i := 0; i < toSend; i++ {
_, err := js.PublishAsync("TEST", []byte("HELLO WORLD"))
_, err := js.Publish("TEST", []byte("HELLO WORLD"))
require_NoError(t, err)
}
select {
case <-js.PublishAsyncComplete():
case <-time.After(5 * time.Second):
t.Fatalf("Did not receive completion signal")
}

_, err = js.UpdateStream(&nats.StreamConfig{
Name: "TEST",
Expand Down

0 comments on commit e143cb0

Please sign in to comment.