Signed-off-by: John Howard <jhoward@microsoft.com>
| ... | ... |
@@ -21,11 +21,10 @@ import ( |
| 21 | 21 |
var expectedNetworkInterfaceStats = strings.Split("rx_bytes rx_dropped rx_errors rx_packets tx_bytes tx_dropped tx_errors tx_packets", " ")
|
| 22 | 22 |
|
| 23 | 23 |
func (s *DockerSuite) TestAPIStatsNoStreamGetCpu(c *check.C) {
|
| 24 |
- out, _ := dockerCmd(c, "run", "-d", "busybox", "/bin/sh", "-c", "while true;do echo 'Hello'; usleep 100000; done") |
|
| 24 |
+ out, _ := dockerCmd(c, "run", "-d", "busybox", "/bin/sh", "-c", "while true;usleep 100; do echo 'Hello'; done") |
|
| 25 | 25 |
|
| 26 | 26 |
id := strings.TrimSpace(out) |
| 27 | 27 |
c.Assert(waitRun(id), checker.IsNil) |
| 28 |
- |
|
| 29 | 28 |
resp, body, err := request.Get(fmt.Sprintf("/containers/%s/stats?stream=false", id))
|
| 30 | 29 |
c.Assert(err, checker.IsNil) |
| 31 | 30 |
c.Assert(resp.StatusCode, checker.Equals, http.StatusOK) |