Skip to content

Commit 7470471

Browse files
authored
test: replace log fatal with ginkgo expect (#1435)
Errors in test cases should not stop the Ginkgo process. Signed-off-by: Roman Sysoev <[email protected]>
1 parent 634e6ee commit 7470471

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/tests_suite_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ var _ = SynchronizedBeforeSuite(func() {
225225
for _, filePath := range kustomizationFiles {
226226
err := kustomize.SetParams(filePath, ns, namePrefix)
227227
if err != nil {
228-
log.Fatal(err)
228+
Expect(err).NotTo(HaveOccurred())
229229
}
230230
}
231231

232232
if !config.IsReusable() {
233233
err := Cleanup()
234234
if err != nil {
235-
log.Fatal(err)
235+
Expect(err).NotTo(HaveOccurred())
236236
}
237237
} else {
238238
log.Println("Run test in REUSABLE mode")
@@ -243,7 +243,7 @@ var _ = SynchronizedBeforeSuite(func() {
243243
if config.IsCleanUpNeeded() {
244244
err := Cleanup()
245245
if err != nil {
246-
log.Fatal(err)
246+
Expect(err).NotTo(HaveOccurred())
247247
}
248248
}
249249
})

0 commit comments

Comments
 (0)