diff options
author | Wolfy-J <[email protected]> | 2019-05-04 23:07:30 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 23:07:30 +0300 |
commit | 3800c27ff9ec2641248d6dc2ce2f7ab56c237664 (patch) | |
tree | c8026df76f0fea5519f958d310210e1da46f369d /controller_test.go | |
parent | 2afa417f4f46b31b79043e3e56513d51e4ad2fde (diff) |
golint
Diffstat (limited to 'controller_test.go')
-rw-r--r-- | controller_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/controller_test.go b/controller_test.go index 031c2f31..d177feda 100644 --- a/controller_test.go +++ b/controller_test.go @@ -47,7 +47,7 @@ func Test_WatcherWatch(t *testing.T) { }) defer rr.Stop() - rr.Watch(&eWatcher{}) + rr.Attach(&eWatcher{}) assert.NoError(t, rr.Start()) assert.NotNil(t, rr.pController) @@ -76,7 +76,7 @@ func Test_WatcherReattach(t *testing.T) { }) defer rr.Stop() - rr.Watch(&eWatcher{}) + rr.Attach(&eWatcher{}) assert.NoError(t, rr.Start()) assert.NotNil(t, rr.pController) @@ -115,7 +115,7 @@ func Test_WatcherAttachDetachSequence(t *testing.T) { var attachedPool Pool - rr.Watch(&eWatcher{ + rr.Attach(&eWatcher{ onAttach: func(p Pool) { attachedPool = p }, @@ -151,7 +151,7 @@ func Test_RemoveWorkerOnAllocation(t *testing.T) { }) defer rr.Stop() - rr.Watch(&eWatcher{}) + rr.Attach(&eWatcher{}) assert.NoError(t, rr.Start()) wr := rr.Workers()[0] @@ -186,7 +186,7 @@ func Test_RemoveWorkerAfterTask(t *testing.T) { }) defer rr.Stop() - rr.Watch(&eWatcher{}) + rr.Attach(&eWatcher{}) assert.NoError(t, rr.Start()) wr := rr.Workers()[0] |