Fix testcase. Id can come in diffrent orders.

This commit is contained in:
Thomas Jager 2015-07-31 08:28:54 +02:00
parent 6c849e1147
commit 414fe0a201

View File

@ -107,7 +107,7 @@ func TestRemoveCallback(t *testing.T) {
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")
}
}