Fixed linting

This commit is contained in:
Juan Font Alonso 2021-07-17 00:29:14 +02:00
parent 9ca2ae7fc5
commit 39b756cf55

View File

@ -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)
}