Skip to content

Commit cd59876

Browse files
committed
Fix cleanup (move to AfterAll)
1 parent efa027b commit cd59876

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/e2e/bundle_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ var _ = Describe("Bundle", Label("bundle"), Ordered, func() {
129129
bundleImage)
130130
Expect(err).NotTo(HaveOccurred())
131131
_, _ = fmt.Fprint(GinkgoWriter, out)
132-
133-
By("Cleanup resources")
134-
cleanupNamespaces(namespaces)
135132
})
136133

137134
AfterAll(func() {
@@ -143,6 +140,9 @@ var _ = Describe("Bundle", Label("bundle"), Ordered, func() {
143140
"--namespace", namespaces[0])
144141
Expect(err).NotTo(HaveOccurred())
145142
_, _ = fmt.Fprint(GinkgoWriter, out)
143+
144+
By("Cleanup resources")
145+
cleanupNamespaces(namespaces)
146146
}
147147
})
148148

@@ -168,9 +168,6 @@ var _ = Describe("Bundle", Label("bundle"), Ordered, func() {
168168
bundleImage)
169169
Expect(err).NotTo(HaveOccurred())
170170
_, _ = fmt.Fprint(GinkgoWriter, out)
171-
172-
By("Cleanup resources")
173-
cleanupNamespaces(namespaces)
174171
})
175172

176173
AfterAll(func() {
@@ -182,6 +179,9 @@ var _ = Describe("Bundle", Label("bundle"), Ordered, func() {
182179
"--namespace", namespaces[0])
183180
Expect(err).NotTo(HaveOccurred())
184181
_, _ = fmt.Fprint(GinkgoWriter, out)
182+
183+
By("Cleanup resources")
184+
cleanupNamespaces(namespaces)
185185
}
186186
})
187187

0 commit comments

Comments
 (0)