diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-10 03:00:47 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-10 03:00:47 +0800 |
commit | 5950755b12f204c957542035739db09860c69a2a (patch) | |
tree | 92424b4b0e2bf1debcfdb6dff066b4d1068b43c3 /event | |
parent | 5f341e5db5c2c3c14c9e076959a84e05c6d917f4 (diff) | |
parent | 4541c2296441ba7e7e625d95d45490dbd064c8b4 (diff) | |
download | dexon-5950755b12f204c957542035739db09860c69a2a.tar dexon-5950755b12f204c957542035739db09860c69a2a.tar.gz dexon-5950755b12f204c957542035739db09860c69a2a.tar.bz2 dexon-5950755b12f204c957542035739db09860c69a2a.tar.lz dexon-5950755b12f204c957542035739db09860c69a2a.tar.xz dexon-5950755b12f204c957542035739db09860c69a2a.tar.zst dexon-5950755b12f204c957542035739db09860c69a2a.zip |
Merge pull request #1220 from karalabe/fix-chain-deadlock2
core: fix a lock annoyance and potential deadlock
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") } |