Skip to content

Commit

Permalink
fixup: Revert conditional change as per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Jun 13, 2024
1 parent 8279526 commit 2df7bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/antithesis/avalanchego/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func (w *workload) verifyXChainTxConsumedUTXOs(ctx context.Context, tx *xtxs.Tx)
inputs := tx.Unsigned.InputIDs()
for input := range inputs {
_, err := utxos.GetUTXO(ctx, chainID, chainID, input)
if err != nil && err != database.ErrNotFound {
if err != database.ErrNotFound {
log.Printf("failed to verify that X-chain UTXO %s was deleted on %s after %s", input, uri, txID)
assert.Unreachable("failed to verify that X-chain UTXO was deleted", map[string]any{
"worker": w.id,
Expand Down Expand Up @@ -645,7 +645,7 @@ func (w *workload) verifyPChainTxConsumedUTXOs(ctx context.Context, tx *ptxs.Tx)
inputs := tx.Unsigned.InputIDs()
for input := range inputs {
_, err := utxos.GetUTXO(ctx, constants.PlatformChainID, constants.PlatformChainID, input)
if err != nil && err != database.ErrNotFound {
if err != database.ErrNotFound {
log.Printf("failed to verify that P-chain UTXO %s was deleted on %s after %s", input, uri, txID)
assert.Unreachable("failed to verify that P-chain UTXO was deleted", map[string]any{
"worker": w.id,
Expand Down

0 comments on commit 2df7bc7

Please sign in to comment.