Commit 4541c229 authored by Péter Szilágyi's avatar Péter Szilágyi

event/filter: hack around data race in the test

parent d652a58a
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")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment