mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-30 04:27:45 +09:00
Unmarshal keys in the non-deprecated way
This commit is contained in:
@@ -720,6 +720,7 @@ func (s *IntegrationCLITestSuite) TestNodeCommand() {
|
||||
[]string{},
|
||||
)
|
||||
assert.Nil(s.T(), err)
|
||||
fmt.Println("Error: ", err)
|
||||
|
||||
var listOnlySharedMachineNamespace []v1.Machine
|
||||
err = json.Unmarshal(
|
||||
@@ -728,6 +729,8 @@ func (s *IntegrationCLITestSuite) TestNodeCommand() {
|
||||
)
|
||||
assert.Nil(s.T(), err)
|
||||
|
||||
fmt.Println("List: ", listOnlySharedMachineNamespaceResult)
|
||||
fmt.Println("List2: ", listOnlySharedMachineNamespace)
|
||||
assert.Len(s.T(), listOnlySharedMachineNamespace, 2)
|
||||
|
||||
assert.Equal(s.T(), uint64(6), listOnlySharedMachineNamespace[0].Id)
|
||||
|
||||
Reference in New Issue
Block a user