Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Liu <yannliu@redhat.com>
  • Loading branch information
yannuil committed Feb 17, 2023
1 parent 80a04ff commit 8919d6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pilot/pkg/config/kube/ior/ior_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ func initClients(
model.ConfigStoreController,
KubeClient,
routeclient.Interface,
*routeController,
) {
store, iorKubeClient, routerClient, r := newClients(t, nil)

r.Run(stop)
runClients(store, iorKubeClient, stop)

return store, iorKubeClient, routerClient, r
return store, iorKubeClient, routerClient
}

func TestCreate(t *testing.T) {
Expand Down Expand Up @@ -249,7 +248,7 @@ func TestCreate(t *testing.T) {
controlPlaneNs := "istio-system"
stop := make(chan struct{})
defer func() { close(stop) }()
store, k8sClient, routerClient, _ := initClients(t, stop)
store, k8sClient, routerClient := initClients(t, stop)

k8sClient.GetActualClient().OsRouteInformer().SetNamespaces([]string{controlPlaneNs})

Expand Down Expand Up @@ -379,7 +378,7 @@ func TestEdit(t *testing.T) {

stop := make(chan struct{})
defer func() { close(stop) }()
store, k8sClient, routerClient, _ := initClients(t, stop)
store, k8sClient, routerClient := initClients(t, stop)

controlPlane := "istio-system"
createIngressGateway(t, k8sClient.GetActualClient(), controlPlane, map[string]string{"istio": "ingressgateway"})
Expand All @@ -402,7 +401,7 @@ func TestConcurrency(t *testing.T) {
IORLog.SetOutputLevel(log.DebugLevel)
stop := make(chan struct{})
defer func() { close(stop) }()
store, k8sClient, routerClient, _ := initClients(t, stop)
store, k8sClient, routerClient := initClients(t, stop)

qty := 10
runs := 10
Expand Down

0 comments on commit 8919d6e

Please sign in to comment.