Skip to content

Commit 645331e

Browse files
committed
Fix bad gomega usage
1 parent ecc17ab commit 645331e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/envtest/setup/cleanup/cleanup_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ var _ = Describe("Cleanup", func() {
7474
})
7575

7676
JustBeforeEach(func() {
77-
Expect(cleanup.Cleanup(
77+
_, err := cleanup.Cleanup(
7878
ctx,
7979
version,
8080
cleanup.WithPlatform("linux", "amd64"),
8181
cleanup.WithEnvOptions(defaultEnvOpts...),
82-
)).To(Succeed())
82+
)
83+
Expect(err).NotTo(HaveOccurred())
8384
})
8485

8586
It("should remove matching versions", func() {

0 commit comments

Comments
 (0)