Skip to content

Commit 33e89e0

Browse files
committed
Linting
Signed-off-by: joshvanl <me@joshvanl.dev>
1 parent 2441f7c commit 33e89e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/e2e/common/common.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func ClusterRoleBindingsTest(details VersionDetails, opts TestOptions) func(t *t
420420
list, err := k8sClient.
421421
RbacV1().
422422
ClusterRoleBindings().
423-
List(ctx, v1.ListOptions{
423+
List(ctx, metav1.ListOptions{
424424
Limit: 100,
425425
Continue: listContinue,
426426
})
@@ -457,7 +457,7 @@ func ClusterRolesTest(details VersionDetails, opts TestOptions) func(t *testing.
457457

458458
var listContinue string
459459
for {
460-
list, err := k8sClient.RbacV1().ClusterRoles().List(ctx, v1.ListOptions{
460+
list, err := k8sClient.RbacV1().ClusterRoles().List(ctx, metav1.ListOptions{
461461
Limit: 100,
462462
Continue: listContinue,
463463
})
@@ -500,7 +500,7 @@ func CRDTest(details VersionDetails, opts TestOptions) func(t *testing.T) {
500500
list, err := apiextensionsClientSet.
501501
ApiextensionsV1().
502502
CustomResourceDefinitions().
503-
List(ctx, v1.ListOptions{
503+
List(ctx, metav1.ListOptions{
504504
Limit: 100,
505505
Continue: listContinue,
506506
})
@@ -739,7 +739,7 @@ func SidecarInjects() func(t *testing.T) {
739739
})
740740

741741
err = wait.PollImmediateUntilWithContext(ctx, time.Second, func(ctx context.Context) (bool, error) {
742-
deploy, err := client.AppsV1().Deployments(DaprTestNamespace).Get(ctx, deploy.Name, metav1.GetOptions{})
742+
deploy, err = client.AppsV1().Deployments(DaprTestNamespace).Get(ctx, deploy.Name, metav1.GetOptions{})
743743
if err != nil {
744744
return false, err
745745
}
@@ -787,6 +787,7 @@ func SidecarInjects() func(t *testing.T) {
787787

788788
return false, errors.New("failed to find injected daprd container")
789789
})
790+
require.NoError(t, err)
790791
}
791792
}
792793

0 commit comments

Comments
 (0)