Browse code

add break when found in TestVolumeCLICreateWithOpts()

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>

lixiaobing10051267 authored on 2016/12/08 16:59:52
Showing 1 changed files
... ...
@@ -311,6 +311,7 @@ func (s *DockerSuite) TestVolumeCLICreateWithOpts(c *check.C) {
311 311
 			c.Assert(info[4], checker.Equals, "tmpfs")
312 312
 			c.Assert(info[5], checker.Contains, "uid=1000")
313 313
 			c.Assert(info[5], checker.Contains, "size=1024k")
314
+			break
314 315
 		}
315 316
 	}
316 317
 	c.Assert(found, checker.Equals, true)