Index: environs/jujutest/livetests.go |
=== modified file 'environs/jujutest/livetests.go' |
--- environs/jujutest/livetests.go 2012-07-26 15:58:04 +0000 |
+++ environs/jujutest/livetests.go 2012-07-30 17:30:44 +0000 |
@@ -201,7 +201,7 @@ |
// Wait for machine to get an instance id. |
for a := waitAgent.Start(); a.Next(); { |
instId, err := m.InstanceId() |
- if _, ok := err.(*state.NoInstanceIdError); ok { |
+ if _, ok := err.(*state.NotFoundError); ok { |
continue |
} |
c.Assert(err, IsNil) |
@@ -216,7 +216,7 @@ |
// Wait for machine id to be cleared. |
for a := waitAgent.Start(); a.Next(); { |
if instId, err := m.InstanceId(); instId == "" { |
- c.Assert(err, FitsTypeOf, &state.NoInstanceIdError{}) |
+ c.Assert(err, FitsTypeOf, &state.NotFoundError{}) |
return |
} |
} |
@@ -235,7 +235,7 @@ |
} |
for a := waitAgent.Start(); a.Next(); { |
id, err = m.InstanceId() |
- _, notset := err.(*state.NoInstanceIdError) |
+ _, notset := err.(*state.NotFoundError) |
if notset { |
if inst == nil { |
return |