Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(369)

Unified Diff: environs/jujutest/livetests.go

Issue 6447054: state: implement MachineInfoWatcher
Patch Set: state: implement MachineInfoWatcher Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/juju/status.go ('k') | state/confignode.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cmd/juju/status.go ('k') | state/confignode.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b