From b2be52994bdd40c2a29ba73f611e7d8fcfe2fabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Holmstr=C3=B6m?= Date: Sat, 13 Jun 2015 05:54:53 +0200 Subject: [PATCH] do not use quickcheck for broadcast --- melody_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/melody_test.go b/melody_test.go index aa2e914..48c9727 100644 --- a/melody_test.go +++ b/melody_test.go @@ -207,8 +207,8 @@ func TestBroadcast(t *testing.T) { return true } - if err := quick.Check(fn, nil); err != nil { - t.Error(err) + if !fn("test") { + t.Errorf("should not be false") } } @@ -254,8 +254,8 @@ func TestBroadcastOthers(t *testing.T) { return true } - if err := quick.Check(fn, nil); err != nil { - t.Error(err) + if !fn("test") { + t.Errorf("should not be false") } } @@ -321,7 +321,7 @@ func TestBroadcastFilter(t *testing.T) { return true } - if err := quick.Check(fn, nil); err != nil { - t.Error(err) + if !fn("test") { + t.Errorf("should not be false") } }