From 667b8ab79260ea98aa1eb36b09f14f4795b5cd16 Mon Sep 17 00:00:00 2001 From: jiashuo Date: Thu, 29 Apr 2021 21:10:05 +0800 Subject: [PATCH] add test --- pegasus/scan_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pegasus/scan_test.go b/pegasus/scan_test.go index a7e292f..639ed2c 100644 --- a/pegasus/scan_test.go +++ b/pegasus/scan_test.go @@ -227,7 +227,7 @@ func TestPegasusTableConnector_ScanFailRecover(t *testing.T) { mockUnknownErrorTable, err := client.OpenTable(context.Background(), "temp") assert.Nil(t, err) defer tb.Close() - scanner, err := mockUnknownErrorTable.GetScanner(context.Background(), []byte("h1"), []byte(""), []byte(""), opts) + scanner, _ := mockUnknownErrorTable.GetScanner(context.Background(), []byte("h1"), []byte(""), []byte(""), opts) unknownErrorMocked := false successCount := 0 var mock *gomonkey.Patches @@ -251,7 +251,7 @@ func TestPegasusTableConnector_ScanFailRecover(t *testing.T) { mockRpcFailedErrorTable, err := client.OpenTable(context.Background(), "temp") assert.Nil(t, err) defer tb.Close() - scanner, err = mockRpcFailedErrorTable.GetScanner(context.Background(), []byte("h1"), []byte(""), []byte(""), opts) + scanner, _ = mockRpcFailedErrorTable.GetScanner(context.Background(), []byte("h1"), []byte(""), []byte(""), opts) rpcFailedMocked := false successCount = 0 for {