aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-08 22:20:28 +0800
committerFelix Lange <fjl@twurst.com>2014-10-08 22:31:08 +0800
commit7c9508ed7160786b6bd87d59d898213bfbdeced5 (patch)
tree08a652eb13cb03e4551d3d576a33bbf12eef1bea
parenta38dafcc57d296447db9748c8c85df6c58b243fb (diff)
downloadgo-tangerine-7c9508ed7160786b6bd87d59d898213bfbdeced5.tar.gz
go-tangerine-7c9508ed7160786b6bd87d59d898213bfbdeced5.tar.zst
go-tangerine-7c9508ed7160786b6bd87d59d898213bfbdeced5.zip
eventer: fix tests
-rw-r--r--eventer/eventer_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/eventer/eventer_test.go b/eventer/eventer_test.go
index b35267af6..6891622e3 100644
--- a/eventer/eventer_test.go
+++ b/eventer/eventer_test.go
@@ -3,7 +3,7 @@ package eventer
import "testing"
func TestChannel(t *testing.T) {
- eventer := New(nil)
+ eventer := New()
c := make(Channel, 1)
eventer.RegisterChannel("test", c)
@@ -17,7 +17,7 @@ func TestChannel(t *testing.T) {
}
func TestFunction(t *testing.T) {
- eventer := New(nil)
+ eventer := New()
var data string
eventer.RegisterFunc("test", func(ev Event) {
@@ -31,7 +31,7 @@ func TestFunction(t *testing.T) {
}
func TestRegister(t *testing.T) {
- eventer := New(nil)
+ eventer := New()
c := eventer.Register("test")
eventer.Post("test", "hello world")
@@ -44,7 +44,7 @@ func TestRegister(t *testing.T) {
}
func TestOn(t *testing.T) {
- eventer := New(nil)
+ eventer := New()
c := make(Channel, 1)
eventer.On("test", c)