Lint fixes 7/n
This commit is contained in:
parent
fa91ece5b4
commit
ffcc72876c
3 changed files with 47 additions and 6 deletions
|
@ -249,10 +249,12 @@ func (s *Suite) TestExpireMachine(c *check.C) {
|
|||
|
||||
machineFromDB, err := app.GetMachine("test", "testmachine")
|
||||
c.Assert(err, check.IsNil)
|
||||
c.Assert(machineFromDB, check.NotNil)
|
||||
|
||||
c.Assert(machineFromDB.isExpired(), check.Equals, false)
|
||||
|
||||
app.ExpireMachine(machineFromDB)
|
||||
err = app.ExpireMachine(machineFromDB)
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
c.Assert(machineFromDB.isExpired(), check.Equals, true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue