Skip to content

Commit

Permalink
fix: update test to not compare checksums
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Akhterov <daniel@launchbadge.com>
  • Loading branch information
janaakhterov committed Jun 30, 2021
1 parent b87ae59 commit 81f0715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions token_wipe_transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestTokenWipeTransaction_Execute(t *testing.T) {
assert.NoError(t, err)

for balanceTokenID, balance := range info.Token {
if *tokenID.checksum == *balanceTokenID.checksum {
if tokenID.Shard == balanceTokenID.Shard && tokenID.Realm == balanceTokenID.Realm && tokenID.Token == balanceTokenID.Token {
value = balance
}
}
Expand Down Expand Up @@ -553,7 +553,7 @@ func TestTokenWipeTransaction_NotZeroTokensAtDelete_Execute(t *testing.T) {

var value uint64
for balanceTokenID, balance := range info.Token {
if *tokenID.checksum == *balanceTokenID.checksum {
if tokenID.Shard == balanceTokenID.Shard && tokenID.Realm == balanceTokenID.Realm && tokenID.Token == balanceTokenID.Token {
value = balance
}
}
Expand All @@ -578,7 +578,7 @@ func TestTokenWipeTransaction_NotZeroTokensAtDelete_Execute(t *testing.T) {
assert.NoError(t, err)

for balanceTokenID, balance := range info.Token {
if *tokenID.checksum == *balanceTokenID.checksum {
if tokenID.Shard == balanceTokenID.Shard && tokenID.Realm == balanceTokenID.Realm && tokenID.Token == balanceTokenID.Token {
value = balance
}
}
Expand Down

0 comments on commit 81f0715

Please sign in to comment.