Skip to content

Commit 99069ac

Browse files
committed
don't share error concurrently
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
1 parent f5014c0 commit 99069ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webhook/webhook_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ var _ = Describe("Webhook", func() {
8484

8585
ctx, cancel := context.WithCancel(context.Background())
8686
go func() {
87-
err = server.Start(ctx)
87+
err := server.Start(ctx)
8888
Expect(err).NotTo(HaveOccurred())
8989
}()
9090

9191
Eventually(func() bool {
92-
err = c.Create(context.TODO(), obj)
92+
err := c.Create(context.TODO(), obj)
9393
return err != nil && strings.HasSuffix(err.Error(), "Always denied") && apierrors.ReasonForError(err) == metav1.StatusReasonForbidden
9494
}, 1*time.Second).Should(BeTrue())
9595

0 commit comments

Comments
 (0)