Skip to content

Commit

Permalink
simplify error msg check for gh action fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Seiler authored and Michael Seiler committed Jun 7, 2024
1 parent b3b605f commit 4799a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itests/eth_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,13 @@ func TestTraceTransaction(t *testing.T) {
nonExistentTxHash := "0x0000000000000000000000000000000000000000000000000000000000000000"
traces, err := client.EthTraceTransaction(ctx, nonExistentTxHash)
require.Error(t, err)
require.Contains(t, err.Error(), "error in RPC call to 'Filecoin.EthTraceTransaction': transaction not found")
require.Contains(t, err.Error(), "transaction not found")
require.Nil(t, traces)

// EthTraceTransaction errors when a trace for pending transactions is requested
traces, err = client.EthTraceTransaction(ctx, hash.String())
require.Error(t, err)
require.Contains(t, err.Error(), "error in RPC call to 'Filecoin.EthTraceTransaction': no trace for pending transactions")
require.Contains(t, err.Error(), "no trace for pending transactions")
require.Nil(t, traces)

receipt, err := client.EVM().WaitTransaction(ctx, hash)
Expand Down

0 comments on commit 4799a55

Please sign in to comment.