Skip to content

Commit 3f27304

Browse files
Update atlas_e2e_test_generator.go
1 parent f96a76a commit 3f27304

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/internal/atlas_e2e_test_generator.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ type AtlasE2ETestGenerator struct {
160160
Tier string
161161
MDBVer string
162162
enableBackup bool
163-
skipCleanup bool
164163
firstProcess *atlasv2.ApiHostViewAtlas
165164
t *testing.T
166165
fileIDs map[string]int
@@ -215,12 +214,6 @@ func WithBackup() func(g *AtlasE2ETestGenerator) {
215214
}
216215
}
217216

218-
func WithSkipCleanup() func(g *AtlasE2ETestGenerator) {
219-
return func(g *AtlasE2ETestGenerator) {
220-
g.skipCleanup = true
221-
}
222-
}
223-
224217
func WithSnapshot() func(g *AtlasE2ETestGenerator) {
225218
return func(g *AtlasE2ETestGenerator) {
226219
g.snapshotServer()
@@ -298,7 +291,7 @@ func (g *AtlasE2ETestGenerator) GenerateProject(prefix string) {
298291
g.t.Fatal("projectID not created")
299292
}
300293

301-
if SkipCleanup() || g.skipCleanup {
294+
if SkipCleanup() {
302295
return
303296
}
304297

@@ -335,7 +328,7 @@ func (g *AtlasE2ETestGenerator) generateClusterWithPrefix(prefix string) {
335328
}
336329
g.t.Logf("clusterName=%s", g.ClusterName)
337330

338-
if SkipCleanup() || g.skipCleanup {
331+
if SkipCleanup() {
339332
return
340333
}
341334

0 commit comments

Comments
 (0)