update testclient for delegating reaction chain

This commit is contained in:
deads2k
2015-08-03 13:30:35 -04:00
parent 5c2c42eed8
commit 7e180c258d
33 changed files with 270 additions and 149 deletions

View File

@@ -134,9 +134,8 @@ func TestSyncNamespaceThatIsActive(t *testing.T) {
}
func TestRunStop(t *testing.T) {
o := testclient.NewObjects(api.Scheme, api.Scheme)
client := &testclient.Fake{ReactFn: testclient.ObjectReaction(o, api.RESTMapper)}
nsController := NewNamespaceController(client, 1*time.Second)
mockClient := &testclient.Fake{}
nsController := NewNamespaceController(mockClient, 1*time.Second)
if nsController.StopEverything != nil {
t.Errorf("Non-running manager should not have a stop channel. Got %v", nsController.StopEverything)