Index: state/machine_test.go |
=== modified file 'state/machine_test.go' |
--- state/machine_test.go 2014-04-04 11:04:48 +0000 |
+++ state/machine_test.go 2014-04-08 10:20:15 +0000 |
@@ -496,8 +496,9 @@ |
c.Assert(err, gc.ErrorMatches, expectErr) |
_, err = machine.AddNetworkInterface("aa:bb:cc:dd:ee:f0", "eth2", "net1") |
- expectErr = errorPrefix + `interface with MAC address "aa:bb:cc:dd:ee:f0" already exists` |
+ expectErr = `interface with MAC address aa:bb:cc:dd:ee:f0 already exists` |
c.Assert(err, gc.ErrorMatches, expectErr) |
+ c.Assert(err, jc.Satisfies, errors.IsAlreadyExistsError) |
_, err = machine.AddNetworkInterface("aa:bb:cc:dd:ee:f0", "eth2", "invalid") |
expectErr = errorPrefix + `network "invalid" not found` |