Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Mar 8, 2024
1 parent 753e11f commit 5ac8ac1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions go-client/admin/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ func TestAdmin_Table(t *testing.T) {
}

func TestAdmin_ListTablesTimeout(t *testing.T) {
testAdmin_Timeout(t, func(c Client) (err error) {
testAdmin_Timeout(t, func(c Client) error {
_, err := c.ListTables()
return err
})
}

Expand Down Expand Up @@ -170,7 +171,7 @@ func TestAdmin_ListNodes(t *testing.T) {
// Compare slice length.
assert.Equal(t, len(expectedReplicaServers), len(nodes))

actualReplicaServers := make([]int, len(nodes))
actualReplicaServers := make([]string, len(nodes))
for i, node := range nodes {
// Each node should be alive.
assert.Equal(t, admin.NodeStatus_NS_ALIVE, node.Status)
Expand All @@ -182,7 +183,8 @@ func TestAdmin_ListNodes(t *testing.T) {
}

func TestAdmin_ListNodesTimeout(t *testing.T) {
testAdmin_Timeout(t, func(c Client) (err error) {
testAdmin_Timeout(t, func(c Client) error {
_, err := c.ListNodes()
return err
})
}

0 comments on commit 5ac8ac1

Please sign in to comment.