Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Sep 19, 2023
1 parent 26a3410 commit aa2c710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/server/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func (s *testProgressSuite) TestSendApiWhenRestartRaftCluster(c *C) {

// Mock restart raft cluster
rc := leader.GetRaftCluster()
c.Assert(rc, IsNil)
c.Assert(rc, NotNil)
rc.Stop()

// Mock client-go will still send request
Expand All @@ -779,7 +779,7 @@ func (s *testProgressSuite) TestSendApiWhenRestartRaftCluster(c *C) {
err = rc.Start(leader.GetServer())
c.Assert(err, IsNil)
rc = leader.GetRaftCluster()
c.Assert(rc, IsNil)
c.Assert(rc, NotNil)
}

func sendRequest(c *C, url string, method string, statusCode int) []byte {
Expand Down

0 comments on commit aa2c710

Please sign in to comment.