Skip to content

Commit c88d9d4

Browse files
committed
Remove faulty nil check from TestNoRaceJetStreamClusterDifferentRTTInterestBasedStreamPreAck
We go on to check the length anyway in `checkFor`, so the `nil` check achieves nothing in practice. Signed-off-by: Neil Twigg <[email protected]>
1 parent abc97b3 commit c88d9d4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

server/norace_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8601,12 +8601,6 @@ func TestNoRaceJetStreamClusterDifferentRTTInterestBasedStreamPreAck(t *testing.
86018601
mset, err := slow.GlobalAccount().lookupStream("EVENTS")
86028602
require_NoError(t, err)
86038603

8604-
// Make sure preAck is non-nil, so we know the logic has kicked in.
8605-
mset.mu.RLock()
8606-
preAcks := mset.preAcks
8607-
mset.mu.RUnlock()
8608-
require_NotNil(t, preAcks)
8609-
86108604
checkFor(t, 5*time.Second, 200*time.Millisecond, func() error {
86118605
state := mset.state()
86128606
if state.Msgs == 0 {

0 commit comments

Comments
 (0)