fix TestEthBlockHashesCorrect_MultiBlockTipset: skip null rounds.
This commit is contained in:
parent
d38bdcebfd
commit
13d6211ed0
@ -3,6 +3,7 @@ package itests
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -55,6 +56,10 @@ func TestEthBlockHashesCorrect_MultiBlockTipset(t *testing.T) {
|
|||||||
hex := fmt.Sprintf("0x%x", i)
|
hex := fmt.Sprintf("0x%x", i)
|
||||||
|
|
||||||
ethBlockA, err := n2.EthGetBlockByNumber(ctx, hex, true)
|
ethBlockA, err := n2.EthGetBlockByNumber(ctx, hex, true)
|
||||||
|
// Cannot use static ErrFullRound error for comparison since it gets reserialized as a JSON RPC error.
|
||||||
|
if err != nil && strings.Contains(err.Error(), "null round") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
ethBlockB, err := n2.EthGetBlockByHash(ctx, ethBlockA.Hash, true)
|
ethBlockB, err := n2.EthGetBlockByHash(ctx, ethBlockA.Hash, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user