Skip to content

Commit

Permalink
Merge pull request #644 from Letty5411/fixpanic
Browse files Browse the repository at this point in the history
test: remove cleanup on teardowntest
  • Loading branch information
allencloud authored Jan 26, 2018
2 parents 02d45a9 + be8e14d commit 42613ac
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion test/cli_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (suite *PouchCreateSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchCreateSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestCreateName is to verify the correctness of creating contaier with specified name.
Expand Down
1 change: 0 additions & 1 deletion test/cli_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func (suite *PouchExecSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchExecSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestExecCommand is to verify the correctness of execing container with specified command.
Expand Down
1 change: 0 additions & 1 deletion test/cli_ps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func (suite *PouchPsSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchPsSuite) TearDownTest(c *check.C) {
environment.PruneAllContainers(apiClient)
}

// TestPsWorks tests "pouch ps" work.
Expand Down
1 change: 0 additions & 1 deletion test/cli_pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func (suite *PouchPullSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchPullSuite) TearDownTest(c *check.C) {
environment.PruneAllImages(apiClient)
}

// TestPullWorks tests "pouch pull" work.
Expand Down
1 change: 1 addition & 0 deletions test/cli_rmi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func init() {
// SetUpSuite does common setup in the beginning of each test suite.
func (suite *PouchRmiSuite) SetUpSuite(c *check.C) {
SkipIfFalse(c, environment.IsLinux)
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestRmiWorks tests "pouch rmi" work.
Expand Down
1 change: 0 additions & 1 deletion test/cli_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (suite *PouchRunSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchRunSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestRun is to verify the correctness of run container with specified name.
Expand Down
1 change: 0 additions & 1 deletion test/cli_start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (suite *PouchStartSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchStartSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestStartCommand tests "pouch start" work.
Expand Down
1 change: 0 additions & 1 deletion test/cli_stop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func (suite *PouchStopSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchStopSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestStopWorks tests "pouch stop" work.
Expand Down
1 change: 0 additions & 1 deletion test/cli_unpause_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func (suite *PouchUnpauseSuite) SetUpSuite(c *check.C) {

// TearDownTest does cleanup work in the end of each test.
func (suite *PouchUnpauseSuite) TearDownTest(c *check.C) {
c.Assert(environment.PruneAllContainers(apiClient), check.IsNil)
}

// TestStopWorks tests "pouch unpause" work.
Expand Down

0 comments on commit 42613ac

Please sign in to comment.