summaryrefslogtreecommitdiff
path: root/controller_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-04 23:07:30 +0300
committerWolfy-J <[email protected]>2019-05-04 23:07:30 +0300
commit3800c27ff9ec2641248d6dc2ce2f7ab56c237664 (patch)
treec8026df76f0fea5519f958d310210e1da46f369d /controller_test.go
parent2afa417f4f46b31b79043e3e56513d51e4ad2fde (diff)
golint
Diffstat (limited to 'controller_test.go')
-rw-r--r--controller_test.go10
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]