mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
fix govet on golang 1.18
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
b6c00355f8
commit
1ce55e3afe
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user