From ec59e99f4e023ea718783dc39f9562769eca708d Mon Sep 17 00:00:00 2001 From: nolouch Date: Fri, 30 Jun 2023 11:21:58 +0800 Subject: [PATCH] fix Signed-off-by: nolouch --- tests/client/client_test.go | 2 +- tests/compatibility/version_upgrade_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/client/client_test.go b/tests/client/client_test.go index 4c63002e43dd..9e6d05d5b0d8 100644 --- a/tests/client/client_test.go +++ b/tests/client/client_test.go @@ -766,7 +766,7 @@ func bootstrapServer(c *C, header *pdpb.RequestHeader, client pdpb.PDClient) { Store: stores[0], Region: region, } - req, err := client.Bootstrap(context.Background(), req) + resp, err := client.Bootstrap(context.Background(), req) c.Assert(err, IsNil) c.Assert(pdpb.ErrorType_OK, Equals, resp.GetHeader().GetError().GetType()) } diff --git a/tests/compatibility/version_upgrade_test.go b/tests/compatibility/version_upgrade_test.go index 35bbebba3105..961a74fff19f 100644 --- a/tests/compatibility/version_upgrade_test.go +++ b/tests/compatibility/version_upgrade_test.go @@ -94,7 +94,7 @@ func (s *compatibilityTestSuite) TestStoreRegister(c *C) { }, } resp, err := svr.PutStore(context.Background(), putStoreRequest) - c.Assert(err, NotNil) + c.Assert(err, IsNil) c.Assert(len(resp.GetHeader().GetError().String()) > 0, IsTrue) }