diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-10 03:12:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-10 03:12:25 +0800 |
commit | bac9a94ddf20dc530966cbf6cd384aaf94aedc77 (patch) | |
tree | 0ced967e60315698cc5056a984d7678c417bc1ce /event | |
parent | 0e703d92ac9df61e2ededa8c895c70ded101a607 (diff) | |
parent | 14994fa21bf6f05554ff370d41005d06b68d20a5 (diff) | |
download | go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.gz go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.bz2 go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.lz go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.xz go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.zst go-tangerine-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.zip |
Merge branch 'release/0.9.28'v0.9.28
Diffstat (limited to 'event')
-rw-r--r-- | event/filter/filter_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/event/filter/filter_test.go b/event/filter/filter_test.go index 815deb63a..534eb56d1 100644 --- a/event/filter/filter_test.go +++ b/event/filter/filter_test.go @@ -1,6 +1,9 @@ package filter -import "testing" +import ( + "testing" + "time" +) func TestFilters(t *testing.T) { var success bool @@ -24,6 +27,8 @@ func TestFilters(t *testing.T) { fm.Notify(Generic{Str1: "hello"}, true) fm.Stop() + time.Sleep(10 * time.Millisecond) // yield to the notifier + if !success { t.Error("expected 'hello' to be posted") } |