Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Dec 15, 2022
1 parent 0975cab commit fdadbd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions venus-shared/testutil/value_provdier_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestDefaultAddresses(t *testing.T) {
protos[addrs[i].Protocol()] = struct{}{}
}

require.True(t, len(protos) == 4)
require.True(t, len(protos) == 5)
}

func TestDefaultIDAddresses(t *testing.T) {
Expand Down Expand Up @@ -99,7 +99,7 @@ func TestDefaultSigTypes(t *testing.T) {
typs[sigtyps[i]] = struct{}{}
}

require.True(t, len(typs) == 2)
require.True(t, len(typs) == 3)
}

func TestDefaultPaddedSize(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions venus-shared/types/eth_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
gocrypto "github.com/filecoin-project/go-crypto"
crypto1 "github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/venus/pkg/crypto"
_ "github.com/filecoin-project/venus/pkg/crypto/delegated"
)

type TxTestcase struct {
Expand Down
4 changes: 4 additions & 0 deletions venus-shared/types/signed_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func TestSignedMessageBasic(t *testing.T) {
require.NotEqual(t, c, src.Message.Cid())
require.Greater(t, src.ChainLength(), src.Message.ChainLength())

case crypto.SigTypeDelegated:
require.NotEqual(t, c, src.Message.Cid())
require.Greater(t, src.ChainLength(), src.Message.ChainLength())

default:
t.Fatalf("unexpected sig type %d", src.Signature.Type)
}
Expand Down

0 comments on commit fdadbd4

Please sign in to comment.