@@ -1209,14 +1209,6 @@ var _ = Describe("bootstrap", func() {
12091209 }`
12101210 })
12111211
1212- Context ("and no physical network interfaces exist" , func () {
1213- It ("raises an error" , func () {
1214- err := boot .Run ()
1215- Expect (err ).To (HaveOccurred ())
1216- Expect (err .Error ()).To (ContainSubstring ("Number of network settings '1' is greater than the number of network devices '0" ))
1217- })
1218- })
1219-
12201212 Context ("and a single physical network interface exists" , func () {
12211213 BeforeEach (func () {
12221214 stubInterfaces ([][]string {{"eth0" , "aa:bb:cc" }})
@@ -1264,14 +1256,6 @@ var _ = Describe("bootstrap", func() {
12641256 }`
12651257 })
12661258
1267- Context ("and no physical network interfaces exist" , func () {
1268- It ("raises an error" , func () {
1269- err := boot .Run ()
1270- Expect (err ).To (HaveOccurred ())
1271- Expect (err .Error ()).To (ContainSubstring ("Number of network settings '1' is greater than the number of network devices '0" ))
1272- })
1273- })
1274-
12751259 Context ("and a single physical network interface exists" , func () {
12761260 BeforeEach (func () {
12771261 stubInterfaces ([][]string {{"eth0" , "aa:bb:cc" }})
@@ -1336,10 +1320,9 @@ var _ = Describe("bootstrap", func() {
13361320 stubInterfaces ([][]string {{"eth0" , "aa:bb:cc" }})
13371321 })
13381322
1339- It ("raises an error " , func () {
1323+ It ("succeeds " , func () {
13401324 err := boot .Run ()
1341- Expect (err ).To (HaveOccurred ())
1342- Expect (err .Error ()).To (ContainSubstring ("Number of network settings '2' is greater than the number of network devices '1" ))
1325+ Expect (err ).ToNot (HaveOccurred ())
13431326 })
13441327 })
13451328
0 commit comments