LEFT | RIGHT |
1 package main | 1 package main |
2 | 2 |
3 import ( | 3 import ( |
4 "io/ioutil" | 4 "io/ioutil" |
5 "net/http" | 5 "net/http" |
6 | 6 |
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/environs/dummy" | 9 "launchpad.net/juju-core/environs/dummy" |
10 "launchpad.net/juju-core/testing" | 10 "launchpad.net/juju-core/testing" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 defer resp.Body.Close() | 75 defer resp.Body.Close() |
76 | 76 |
77 err = environs.UnpackTools(c.MkDir(), tools, resp.Body) | 77 err = environs.UnpackTools(c.MkDir(), tools, resp.Body) |
78 c.Assert(err, IsNil) | 78 c.Assert(err, IsNil) |
79 | 79 |
80 // bootstrap with broken environment | 80 // bootstrap with broken environment |
81 opc, errc = runCommand(new(BootstrapCommand), "-e", "brokenenv") | 81 opc, errc = runCommand(new(BootstrapCommand), "-e", "brokenenv") |
82 c.Check(<-errc, ErrorMatches, "dummy.Bootstrap is broken") | 82 c.Check(<-errc, ErrorMatches, "dummy.Bootstrap is broken") |
83 c.Check(<-opc, IsNil) | 83 c.Check(<-opc, IsNil) |
84 } | 84 } |
LEFT | RIGHT |