From d9d60be322f98d7b2f08ece6637e6d6927909023 Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Tue, 14 Jan 2025 14:08:30 -0500 Subject: [PATCH] tests/robustness/traffic: should use rev=0 for create Signed-off-by: Wei Fu --- tests/robustness/traffic/kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/robustness/traffic/kubernetes.go b/tests/robustness/traffic/kubernetes.go index bbe55e86bf5..445f75324e6 100644 --- a/tests/robustness/traffic/kubernetes.go +++ b/tests/robustness/traffic/kubernetes.go @@ -162,7 +162,7 @@ func (t kubernetesTraffic) Write(ctx context.Context, kc kubernetes.Interface, i case KubernetesUpdate: _, err = kc.OptimisticPut(writeCtx, key, []byte(fmt.Sprintf("%d", ids.NewRequestID())), rev, kubernetes.PutOptions{GetOnFailure: true}) case KubernetesCreate: - _, err = kc.OptimisticPut(writeCtx, t.generateKey(), []byte(fmt.Sprintf("%d", ids.NewRequestID())), rev, kubernetes.PutOptions{}) + _, err = kc.OptimisticPut(writeCtx, t.generateKey(), []byte(fmt.Sprintf("%d", ids.NewRequestID())), 0, kubernetes.PutOptions{}) default: panic(fmt.Sprintf("invalid choice: %q", op)) }