@@ -41,7 +41,7 @@ func (suite *PouchUpgradeSuite) TeadDownTest(c *check.C) {
4141func (suite * PouchUpgradeSuite ) TestPouchUpgrade (c * check.C ) {
4242 name := "TestPouchUpgrade"
4343
44- res := command .PouchRun ("run" , "-d" , "--name" , name , busyboxImage )
44+ res := command .PouchRun ("run" , "-d" , "--name" , name , busyboxImage , "top" )
4545 defer DelContainerForceMultyTime (c , name )
4646 res .Assert (c , icmd .Success )
4747
@@ -57,7 +57,7 @@ func (suite *PouchUpgradeSuite) TestPouchUpgrade(c *check.C) {
5757func (suite * PouchUpgradeSuite ) TestPouchUpgradeNoChange (c * check.C ) {
5858 name := "TestPouchUpgradeNoChange"
5959
60- res := command .PouchRun ("run" , "-d" , "--name" , name , busyboxImage )
60+ res := command .PouchRun ("run" , "-d" , "--name" , name , busyboxImage , "top" )
6161 defer DelContainerForceMultyTime (c , name )
6262 res .Assert (c , icmd .Success )
6363
@@ -92,11 +92,13 @@ func (suite *PouchUpgradeSuite) TestPouchUpgradeStoppedContainer(c *check.C) {
9292func (suite * PouchUpgradeSuite ) TestPouchUpgradeContainerMemCpu (c * check.C ) {
9393 name := "TestPouchUpgradeContainerMemCpu"
9494
95- res := command .PouchRun ("run" , "-d" , "-m" , "300m" , "--cpu-share" , "20" , "--name" , name , busyboxImage , "top" )
95+ res := command .PouchRun ("run" , "-d" , "-m" , "300m" ,
96+ "--cpu-share" , "20" , "--name" , name , busyboxImage , "top" )
9697 defer DelContainerForceMultyTime (c , name )
9798 res .Assert (c , icmd .Success )
9899
99- command .PouchRun ("upgrade" , "-m" , "500m" , "--cpu-share" , "40" , "--name" , name , busyboxImage125 ).Assert (c , icmd .Success )
100+ command .PouchRun ("upgrade" , "-m" , "500m" ,
101+ "--cpu-share" , "40" , "--name" , name , busyboxImage125 ).Assert (c , icmd .Success )
100102
101103 output := command .PouchRun ("inspect" , name ).Stdout ()
102104 result := []types.ContainerJSON {}
@@ -143,11 +145,13 @@ func (suite *PouchUpgradeSuite) TestPouchUpgradeContainerMemCpu(c *check.C) {
143145func (suite * PouchUpgradeSuite ) TestPouchUpgradeContainerLabels (c * check.C ) {
144146 name := "TestPouchUpgradeContainerLabels"
145147
146- res := command .PouchRun ("run" , "-d" , "--label" , "test=foo" , "--name" , name , busyboxImage )
148+ res := command .PouchRun ("run" , "-d" , "--label" , "test=foo" ,
149+ "--name" , name , busyboxImage )
147150 defer DelContainerForceMultyTime (c , name )
148151 res .Assert (c , icmd .Success )
149152
150- command .PouchRun ("upgrade" , "--label" , "test1=bar" , "--name" , name , busyboxImage125 ).Assert (c , icmd .Success )
153+ command .PouchRun ("upgrade" , "--label" , "test1=bar" ,
154+ "--name" , name , busyboxImage125 ).Assert (c , icmd .Success )
151155
152156 output := command .PouchRun ("inspect" , name ).Stdout ()
153157 result := []types.ContainerJSON {}
0 commit comments