address magik supernit

This commit is contained in:
Aayush 2022-09-23 11:36:38 -04:00 committed by Łukasz Magiera
parent 8244297b89
commit 9c242a8012
2 changed files with 3 additions and 3 deletions

View File

@ -11,10 +11,10 @@ import (
"strings"
"testing"
"github.com/filecoin-project/go-jsonrpc"
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"
"github.com/stretchr/testify/require"
"github.com/filecoin-project/go-jsonrpc"
)
func goCmd() string {

View File

@ -192,7 +192,7 @@ func (bm *BlockMiner) MineBlocksMustPost(ctx context.Context, blocktime time.Dur
reportSuccessFn := func(success bool, epoch abi.ChainEpoch, err error) {
// if api shuts down before mining, we may get an error which we should probably just ignore
// (fixing it will require rewriting most of the mining loop)
if err != nil && !strings.Contains(err.Error(), "websocket connection closed") && !api.ErrorIsIn(err, []error{&jsonrpc.RPCConnectionError{}}) {
if err != nil && !strings.Contains(err.Error(), "websocket connection closed") && !api.ErrorIsIn(err, []error{new(jsonrpc.RPCConnectionError)}) {
require.NoError(bm.t, err)
}