mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 17:03:06 +00:00
Fixed linting
This commit is contained in:
parent
9ca2ae7fc5
commit
39b756cf55
1 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,8 @@ func (s *Suite) TestDeleteMachine(c *check.C) {
|
||||||
AuthKeyID: uint(1),
|
AuthKeyID: uint(1),
|
||||||
}
|
}
|
||||||
h.db.Save(&m)
|
h.db.Save(&m)
|
||||||
h.DeleteMachine(&m)
|
err = h.DeleteMachine(&m)
|
||||||
|
c.Assert(err, check.IsNil)
|
||||||
_, err = h.GetMachine(n.Name, "testmachine")
|
_, err = h.GetMachine(n.Name, "testmachine")
|
||||||
c.Assert(err, check.NotNil)
|
c.Assert(err, check.NotNil)
|
||||||
}
|
}
|
||||||
|
@ -99,7 +100,8 @@ func (s *Suite) TestHardDeleteMachine(c *check.C) {
|
||||||
AuthKeyID: uint(1),
|
AuthKeyID: uint(1),
|
||||||
}
|
}
|
||||||
h.db.Save(&m)
|
h.db.Save(&m)
|
||||||
h.HardDeleteMachine(&m)
|
err = h.HardDeleteMachine(&m)
|
||||||
|
c.Assert(err, check.IsNil)
|
||||||
_, err = h.GetMachine(n.Name, "testmachine3")
|
_, err = h.GetMachine(n.Name, "testmachine3")
|
||||||
c.Assert(err, check.NotNil)
|
c.Assert(err, check.NotNil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue