Skip to content

Commit

Permalink
refactor: change installer e2e delete strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
QianChenglong committed Dec 6, 2019
1 parent 9459951 commit e76c9d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e_installer/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ var _ = Describe("bootstrap", func() {
var nodes []cloudprovider.Instance
var nodesSSH []ssh.Interface
var provider cloudprovider.Provider
needDelete := false

BeforeEach(func() {
var err error
Expand Down Expand Up @@ -72,7 +71,7 @@ var _ = Describe("bootstrap", func() {
})

AfterEach(func() {
if !needDelete {
if os.Getenv("NEED_DELETE") == "" {
return
}
var instanceIDs []*string
Expand Down Expand Up @@ -146,6 +145,5 @@ var _ = Describe("bootstrap", func() {
}
})
Expect(err).To(BeNil())
needDelete = true
})
})

0 comments on commit e76c9d6

Please sign in to comment.