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

Unified Diff: cmd/jujud/machine_test.go

Issue 28270043: cmd/jujud: remove mongo and data-dir on teardown
Patch Set: cmd/jujud: remove mongo and data-dir on teardown Created 10 years, 4 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/jujud/machine.go ('k') | environs/cloudinit/cloudinit.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/jujud/machine_test.go
=== modified file 'cmd/jujud/machine_test.go'
--- cmd/jujud/machine_test.go 2013-11-11 22:19:10 +0000
+++ cmd/jujud/machine_test.go 2013-11-18 09:36:25 +0000
@@ -149,11 +149,15 @@
a := s.newAgent(c, m)
err = runWithTimeout(a)
c.Assert(err, gc.IsNil)
+}
- // try again with the machine removed.
+func (s *MachineSuite) TestWithRemovedMachine(c *gc.C) {
+ m, _, _ := s.primeAgent(c, state.JobHostUnits, state.JobManageState)
+ err := m.EnsureDead()
+ c.Assert(err, gc.IsNil)
err = m.Remove()
c.Assert(err, gc.IsNil)
- a = s.newAgent(c, m)
+ a := s.newAgent(c, m)
err = runWithTimeout(a)
c.Assert(err, gc.IsNil)
}
« no previous file with comments | « cmd/jujud/machine.go ('k') | environs/cloudinit/cloudinit.go » ('j') | no next file with comments »

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