From 0d1c44c09cde810701406f7f92085ccd295f5f35 Mon Sep 17 00:00:00 2001 From: f41gh7 Date: Tue, 17 Dec 2024 12:13:15 +0100 Subject: [PATCH] make linter happy --- test/e2e/childobjects/vmuser_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/childobjects/vmuser_test.go b/test/e2e/childobjects/vmuser_test.go index b747a4b1..8971c055 100644 --- a/test/e2e/childobjects/vmuser_test.go +++ b/test/e2e/childobjects/vmuser_test.go @@ -178,7 +178,7 @@ var _ = Describe("test vmuser Controller", func() { var vmuser v1beta1vm.VMUser Expect(k8sClient.Get(ctx, nsn, &vmuser)).To(Succeed()) Expect(vmuser.Status.UpdateStatus).To(Equal(v1beta1vm.UpdateStatusFailed)) - Expect(len(vmuser.Status.Conditions) > 0).To(BeTrue()) + Expect(vmuser.Status.Conditions).NotTo(BeEmpty()) } }, }, @@ -191,7 +191,7 @@ var _ = Describe("test vmuser Controller", func() { }, StringData: map[string]string{"password": "password"}, } - Expect(k8sClient.Create(ctx, &passwordSecret)) + Expect(k8sClient.Create(ctx, &passwordSecret)).To(Succeed()) DeferCleanup(func() { Expect(k8sClient.Delete(ctx, &passwordSecret)).To(Succeed()) })