From 414fe0a20144f75b1b650d7e5ff260496ec3cc8c Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Fri, 31 Jul 2015 08:28:54 +0200 Subject: [PATCH] Fix testcase. Id can come in diffrent orders. --- irc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc_test.go b/irc_test.go index ab90e76..aa3f7c7 100644 --- a/irc_test.go +++ b/irc_test.go @@ -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") } }