Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix intermittent test failure in TestLevelQueue
Fix #15776

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed May 7, 2021
commit e01342da81ce63d9999aeb7f4d23f90d53b4e0d6
7 changes: 6 additions & 1 deletion modules/queue/queue_disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ func TestLevelQueue(t *testing.T) {
}()

result1 := <-handleChan
result2 := <-handleChan

if result1.TestString != test1.TestString {
result1, result2 = result2, result1
}

assert.Equal(t, test1.TestString, result1.TestString)
assert.Equal(t, test1.TestInt, result1.TestInt)

result2 := <-handleChan
assert.Equal(t, test2.TestString, result2.TestString)
assert.Equal(t, test2.TestInt, result2.TestInt)

Expand Down