From 4742e9dd6ab2b797d32cb0953849fdcfe82ea325 Mon Sep 17 00:00:00 2001 From: Mason Malone <651224+MasonM@users.noreply.github.com> Date: Sat, 2 Nov 2024 00:07:45 -0700 Subject: [PATCH] chore(tests): fix lint failures (#13853) Signed-off-by: Mason Malone <651224+MasonM@users.noreply.github.com> --- test/e2e/suspend_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/suspend_test.go b/test/e2e/suspend_test.go index 64913c5f5e28..19e28c30ad3a 100644 --- a/test/e2e/suspend_test.go +++ b/test/e2e/suspend_test.go @@ -113,7 +113,7 @@ spec: return status.Name == "suspend-node-timeout-with-default-value[0].approve" }, func(t *testing.T, status *wfv1.NodeStatus, pod *apiv1.Pod) { assert.Equal(t, wfv1.NodeSucceeded, status.Phase) - assert.Equal(t, 1, len(status.Outputs.Parameters)) + assert.Len(t, status.Outputs.Parameters, 1) assert.Equal(t, "message", status.Outputs.Parameters[0].Name) assert.Equal(t, wfv1.AnyStringPtr("default message"), status.Outputs.Parameters[0].Value) }). @@ -121,7 +121,7 @@ spec: return status.Name == "suspend-node-timeout-with-default-value[1].release" }, func(t *testing.T, status *wfv1.NodeStatus, pod *apiv1.Pod) { assert.Equal(t, wfv1.NodeSucceeded, status.Phase) - assert.Equal(t, 1, len(status.Inputs.Parameters)) + assert.Len(t, status.Inputs.Parameters, 1) assert.Equal(t, "message", status.Inputs.Parameters[0].Name) assert.Equal(t, wfv1.AnyStringPtr("default message"), status.Inputs.Parameters[0].Value) })