mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-26 19:31:22 +01:00
When attempting to unshare a node from the primary namespace, return
errorMachineNotShared, not errorSameNamespace. Add test for same.
This commit is contained in:
@@ -86,6 +86,9 @@ func (s *Suite) TestUnshare(c *check.C) {
|
||||
|
||||
err = h.RemoveSharedMachineFromNamespace(m2, n1)
|
||||
c.Assert(err, check.Equals, errorMachineNotShared)
|
||||
|
||||
err = h.RemoveSharedMachineFromNamespace(m1, n1)
|
||||
c.Assert(err, check.Equals, errorMachineNotShared)
|
||||
}
|
||||
|
||||
func (s *Suite) TestAlreadyShared(c *check.C) {
|
||||
|
||||
Reference in New Issue
Block a user