Skip to content

Commit

Permalink
*: fix TestMembers (#8039)
Browse files Browse the repository at this point in the history
close #7881

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
rleungx and ti-chi-bot[bot] authored Apr 8, 2024
1 parent 949d602 commit 726b81f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/integrations/mcs/members/member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ func (suite *memberTestSuite) TearDownTest() {
for _, cleanup := range suite.cleanupFunc {
cleanup()
}
suite.dialClient.Close()
if suite.dialClient != nil {
suite.dialClient.Close()
}
suite.cluster.Destroy()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (s *testResourceManagerSuite) TestConfigController() {

actualCfg := server.ControllerConfig{}
err = json.Unmarshal(output, &actualCfg)
re.NoError(err)
re.NoError(err, string(output))
re.Equal(expectCfg, actualCfg)
}

Expand Down

0 comments on commit 726b81f

Please sign in to comment.