diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab6e3aa2..0543ed6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,7 @@ jobs: tests: runs-on: ubuntu-latest + timeout-minutes: 50 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/parser/errors_test.go b/parser/errors_test.go index a6959c37..d747ce50 100644 --- a/parser/errors_test.go +++ b/parser/errors_test.go @@ -1,8 +1,9 @@ package parser import ( - "github.com/filecoin-project/go-state-types/exitcode" "testing" + + "github.com/filecoin-project/go-state-types/exitcode" ) func TestCheckExitCodeCommonError(t *testing.T) { @@ -14,52 +15,52 @@ func TestCheckExitCodeCommonError(t *testing.T) { { name: "ErrIllegalArgument", code: exitcode.ErrIllegalArgument, - want: "ErrIllegalArgument", + want: "ErrIllegalArgument(16)", }, { name: "ErrNotFound", code: exitcode.ErrNotFound, - want: "ErrNotFound", + want: "ErrNotFound(17)", }, { name: "ErrForbidden", code: exitcode.ErrForbidden, - want: "ErrForbidden", + want: "ErrForbidden(18)", }, { name: "ErrInsufficientFunds", code: exitcode.ErrInsufficientFunds, - want: "ErrInsufficientFunds", + want: "ErrInsufficientFunds(19)", }, { name: "ErrIllegalState", code: exitcode.ErrIllegalState, - want: "ErrIllegalState", + want: "ErrIllegalState(20)", }, { name: "ErrSerialization", code: exitcode.ErrSerialization, - want: "ErrSerialization", + want: "ErrSerialization(21)", }, { name: "ErrUnhandledMessage", code: exitcode.ErrUnhandledMessage, - want: "ErrUnhandledMessage", + want: "ErrUnhandledMessage(22)", }, { name: "ErrUnspecified", code: exitcode.ErrUnspecified, - want: "ErrUnspecified", + want: "ErrUnspecified(23)", }, { name: "ErrAssertionFailed", code: exitcode.ErrAssertionFailed, - want: "ErrAssertionFailed", + want: "ErrAssertionFailed(24)", }, { name: "ErrReadOnly", code: exitcode.ErrReadOnly, - want: "ErrReadOnly", + want: "ErrReadOnly(25)", }, } for _, tt := range tests { diff --git a/parser_test.go b/parser_test.go index d99237cc..73e2d631 100644 --- a/parser_test.go +++ b/parser_test.go @@ -14,8 +14,6 @@ import ( "github.com/stretchr/testify/assert" - "github.com/zondax/fil-parser/parser" - "go.uber.org/zap" "github.com/filecoin-project/lotus/api" @@ -356,13 +354,7 @@ func TestParseGenesis(t *testing.T) { logger, err := zap.NewDevelopment() require.NoError(t, err) lib := getLib(t, nodeUrl) - config := &parser.FilecoinParserConfig{ - ConsolidateAddressesToRobust: parser.ConsolidateAddressesToRobust{ - Enable: true, - BestEffort: true, - }, - } - p, err := NewFilecoinParser(lib, getCacheDataSource(t, nodeUrl), logger, config) + p, err := NewFilecoinParser(lib, getCacheDataSource(t, nodeUrl), logger) assert.NoError(t, err) actualTxs, _ := p.ParseGenesis(genesisBalances, genesisTipset)