LEFT | RIGHT |
1 package jujutest | 1 package jujutest |
2 | 2 |
3 import ( | 3 import ( |
4 "bytes" | 4 "bytes" |
5 "io" | 5 "io" |
6 "io/ioutil" | 6 "io/ioutil" |
7 . "launchpad.net/gocheck" | 7 . "launchpad.net/gocheck" |
8 "launchpad.net/juju-core/environs" | 8 "launchpad.net/juju-core/environs" |
9 "launchpad.net/juju-core/juju/testing" | 9 "launchpad.net/juju-core/juju/testing" |
10 coretesting "launchpad.net/juju-core/testing" | 10 coretesting "launchpad.net/juju-core/testing" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 } | 222 } |
223 c.Logf("get retrying after earlier get succeeded. *sigh*.") | 223 c.Logf("get retrying after earlier get succeeded. *sigh*.") |
224 } | 224 } |
225 c.Assert(err, IsNil) | 225 c.Assert(err, IsNil) |
226 data, err = ioutil.ReadAll(resp.Body) | 226 data, err = ioutil.ReadAll(resp.Body) |
227 c.Assert(err, IsNil) | 227 c.Assert(err, IsNil) |
228 defer resp.Body.Close() | 228 defer resp.Body.Close() |
229 c.Assert(resp.StatusCode, Equals, 200, Commentf("error response: %s", da
ta)) | 229 c.Assert(resp.StatusCode, Equals, 200, Commentf("error response: %s", da
ta)) |
230 c.Check(data, DeepEquals, contents) | 230 c.Check(data, DeepEquals, contents) |
231 } | 231 } |
LEFT | RIGHT |