Skip to content

Commit

Permalink
Merge pull request #19194 from fuweid/update-robustness-traffic
Browse files Browse the repository at this point in the history
tests/robustness/traffic: should use rev=0 for create
  • Loading branch information
serathius authored Jan 15, 2025
2 parents 76d836f + d9d60be commit 99aab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/robustness/traffic/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 99aab24

Please sign in to comment.