Unmarshal keys in the non-deprecated way

This commit is contained in:
Kristoffer Dalby 2021-11-26 23:50:42 +00:00
parent 0012c76170
commit c38f00fab8
7 changed files with 27 additions and 40 deletions

View file

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