From 39b756cf5548535e23ecc5b71592dc000e6f2d06 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sat, 17 Jul 2021 00:29:14 +0200 Subject: [PATCH] Fixed linting --- machine_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) }