From aa2c71041e24120c991aeeb339a9c84ef62d57c3 Mon Sep 17 00:00:00 2001 From: husharp Date: Tue, 19 Sep 2023 12:05:34 +0800 Subject: [PATCH] fix test Signed-off-by: husharp --- tests/server/api/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/server/api/api_test.go b/tests/server/api/api_test.go index af4ae8f2b9c..8102532102f 100644 --- a/tests/server/api/api_test.go +++ b/tests/server/api/api_test.go @@ -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 @@ -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 {