fix controller Start method signature

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-11 09:05:53 +00:00
parent 810bfb618a
commit 2fcfb81066
39 changed files with 106 additions and 120 deletions

View File

@@ -69,11 +69,11 @@ func TestGetListApplications(t *testing.T) {
t.Fatalf("unable add APIs to scheme: %v", err)
}
stopCh := make(chan struct{})
ctx := context.Background()
ce, _ := cache.New(cfg, cache.Options{Scheme: sch})
go ce.Start(stopCh)
ce.WaitForCacheSync(stopCh)
go ce.Start(ctx)
ce.WaitForCacheSync(ctx)
c, _ = client.New(cfg, client.Options{Scheme: sch})
@@ -98,7 +98,7 @@ func TestGetListApplications(t *testing.T) {
},
}
ctx := context.TODO()
// ctx := context.TODO()
createNamespace(ns, ctx)
for _, app := range testCases {