Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Jan 25, 2024
1 parent 0053f71 commit 62dd637
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pkg/indexer/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ func TestIndexer_NewAccountOutput(t *testing.T) {
},
&iotago.BlockIssuerFeature{
BlockIssuerKeys: iotago.BlockIssuerKeys{
&iotago.Ed25519PublicKeyBlockIssuerKey{
PublicKey: hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey)),
},
iotago.Ed25519PublicKeyHashBlockIssuerKeyFromPublicKey(hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey))),
},
ExpirySlot: 0,
},
Expand Down Expand Up @@ -134,9 +132,7 @@ func TestIndexer_ExistingAccountOutput(t *testing.T) {
},
&iotago.BlockIssuerFeature{
BlockIssuerKeys: iotago.BlockIssuerKeys{
&iotago.Ed25519PublicKeyBlockIssuerKey{
PublicKey: hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey)),
},
iotago.Ed25519PublicKeyHashBlockIssuerKeyFromPublicKey(hive_ed25519.PublicKey(iotago_tpkg.RandEd25519PrivateKey().Public().(ed25519.PublicKey))),
},
ExpirySlot: 0,
},
Expand Down Expand Up @@ -251,7 +247,7 @@ func TestIndexer_MutateExistingAccount(t *testing.T) {
}

require.NoError(ts.T, ts.Indexer.AcceptLedgerUpdate(update))

ts.requireFound(newOutputID)
ts.requireFound(foundryOutputID)
}

0 comments on commit 62dd637

Please sign in to comment.