Skip to content

Commit 81199b9

Browse files
authored
Merge pull request #2158 from inteon/test_bugfix
🐛 Don't share error concurrently in test
2 parents f5014c0 + 99069ac commit 81199b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webhook/webhook_integration_test.go

Lines changed: 2 additions & 2 deletions
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)