Skip to content

Commit 4e95cf8

Browse files
committed
change test assertion
1 parent 25933e4 commit 4e95cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ var _ = Describe("Proxy", func() {
839839
if lockMode == proxyrule.OptimisticLockMode {
840840
Expect(err).To(Succeed())
841841
} else {
842-
Expect(k8serrors.IsUnauthorized(err)).To(BeTrue(), "err isn't `unauthorized`:", err.Error())
842+
Expect(k8serrors.IsConflict(err) || k8serrors.IsUnauthorized(err)).To(BeTrue())
843843
// paul sees the request fail, so he tries again:
844844
Expect(DeletePod(ctx, paulClient, paulNamespace, paulPod)).To(Succeed())
845845
}

0 commit comments

Comments
 (0)