Skip to content

Commit

Permalink
[FIXED] Need a flush to make sure 2nd INFO processed (#4511)
Browse files Browse the repository at this point in the history
Fix for TestNoRaceJetStreamStreamInfoSubjectDetailsLimits.

Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Sep 12, 2023
2 parents e378f04 + 970dfab commit 573087d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/norace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4242,6 +4242,9 @@ func TestNoRaceJetStreamStreamInfoSubjectDetailsLimits(t *testing.T) {
nc, js := jsClientConnect(t, s, nats.UserInfo("me", "pwd"))
defer nc.Close()

// Make sure to flush so we process the 2nd INFO.
nc.Flush()

// Make sure we cannot send larger than 256 bytes.
// But we can receive larger.
sub, err := nc.SubscribeSync("foo")
Expand Down

0 comments on commit 573087d

Please sign in to comment.