Unmarshal keys in the non-deprecated way
This commit is contained in:
parent
0012c76170
commit
c38f00fab8
7 changed files with 27 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue