File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff 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-
224217func 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
You can’t perform that action at this time.
0 commit comments