diff --git a/machine_test.go b/machine_test.go index 72d7512f..1bd29a9d 100644 --- a/machine_test.go +++ b/machine_test.go @@ -79,7 +79,8 @@ func (s *Suite) TestDeleteMachine(c *check.C) { AuthKeyID: uint(1), } h.db.Save(&m) - h.DeleteMachine(&m) + err = h.DeleteMachine(&m) + c.Assert(err, check.IsNil) _, err = h.GetMachine(n.Name, "testmachine") c.Assert(err, check.NotNil) } @@ -99,7 +100,8 @@ func (s *Suite) TestHardDeleteMachine(c *check.C) { AuthKeyID: uint(1), } h.db.Save(&m) - h.HardDeleteMachine(&m) + err = h.HardDeleteMachine(&m) + c.Assert(err, check.IsNil) _, err = h.GetMachine(n.Name, "testmachine3") c.Assert(err, check.NotNil) }