Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Jan 17, 2023
1 parent adb2a75 commit 4bacf1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions process/elasticproc/accounts/accountsProcessor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestGetESDTInfo(t *testing.T) {
balance, prop, _, err := ap.getESDTInfo(wrapAccount)
require.Nil(t, err)
require.Equal(t, big.NewInt(1000), balance)
require.Equal(t, hex.EncodeToString([]byte("ok")), prop)
require.Equal(t, "ok", prop)
}

func TestGetESDTInfoNFT(t *testing.T) {
Expand Down Expand Up @@ -134,7 +134,7 @@ func TestGetESDTInfoNFT(t *testing.T) {
balance, prop, _, err := ap.getESDTInfo(wrapAccount)
require.Nil(t, err)
require.Equal(t, big.NewInt(1), balance)
require.Equal(t, hex.EncodeToString([]byte("ok")), prop)
require.Equal(t, "ok", prop)
}

func TestGetESDTInfoNFTWithMetaData(t *testing.T) {
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestGetESDTInfoNFTWithMetaData(t *testing.T) {
balance, prop, metaData, err := ap.getESDTInfo(wrapAccount)
require.Nil(t, err)
require.Equal(t, big.NewInt(1), balance)
require.Equal(t, hex.EncodeToString([]byte("ok")), prop)
require.Equal(t, "ok", prop)
require.Equal(t, &data.TokenMetaData{
Name: nftName,
Creator: creator,
Expand Down Expand Up @@ -337,7 +337,7 @@ func TestAccountsProcessor_PrepareAccountsMapESDT(t *testing.T) {
BalanceNum: balanceConverter.ComputeBalanceAsFloat(big.NewInt(1000)),
TokenName: "token",
TokenIdentifier: "token-0f",
Properties: hex.EncodeToString([]byte("ok")),
Properties: "ok",
TokenNonce: 15,
Data: &data.TokenMetaData{
Creator: "creator",
Expand All @@ -351,7 +351,7 @@ func TestAccountsProcessor_PrepareAccountsMapESDT(t *testing.T) {
BalanceNum: balanceConverter.ComputeBalanceAsFloat(big.NewInt(1000)),
TokenName: "token",
TokenIdentifier: "token-10",
Properties: hex.EncodeToString([]byte("ok")),
Properties: "ok",
TokenNonce: 16,
Data: &data.TokenMetaData{
Creator: "creator",
Expand Down

0 comments on commit 4bacf1d

Please sign in to comment.