From 1ce55e3afe761bca0e2979dde79c0becbf431a3e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 22 Mar 2022 20:55:40 -0400 Subject: [PATCH] fix govet on golang 1.18 Signed-off-by: Davanum Srinivas --- test/integration/apimachinery/watch_restart_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/apimachinery/watch_restart_test.go b/test/integration/apimachinery/watch_restart_test.go index e08dde5b2fb..bccfeef6c40 100644 --- a/test/integration/apimachinery/watch_restart_test.go +++ b/test/integration/apimachinery/watch_restart_test.go @@ -121,7 +121,7 @@ func TestWatchRestartsIfTimeoutNotReached(t *testing.T) { patch := fmt.Sprintf(`{"metadata": {"annotations": {"count": "%d"}}}`, counter) _, err := c.CoreV1().Secrets(secret.Namespace).Patch(context.TODO(), secret.Name, types.StrategicMergePatchType, []byte(patch), metav1.PatchOptions{}) if err != nil { - t.Fatalf("Failed to patch secret: %v", err) + panic(fmt.Sprintf("Failed to patch secret: %v", err)) } *referenceOutput = append(*referenceOutput, fmt.Sprintf("%d", counter))