Fix testcase. Id can come in diffrent orders.
This commit is contained in:
parent
6c849e1147
commit
414fe0a201
@ -107,7 +107,7 @@ func TestRemoveCallback(t *testing.T) {
|
|||||||
results = append(results, <-done)
|
results = append(results, <-done)
|
||||||
results = append(results, <-done)
|
results = append(results, <-done)
|
||||||
|
|
||||||
if len(results) != 2 || !(results[0] == 1 && results[1] == 3) {
|
if len(results) != 2 || results[0] == 2 || results[1] == 2 {
|
||||||
t.Error("Callback 2 not removed")
|
t.Error("Callback 2 not removed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user