Skip to content

Commit

Permalink
test: fixed statedb journal test
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Jan 7, 2025
1 parent 3a6013f commit caddee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/evm/statedb/journal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ func (s *Suite) TestComplexJournalChanges() {
stateDB, ok = evmObj.StateDB.(*statedb.StateDB)
s.Require().True(ok, "error retrieving StateDB from the EVM")

s.T().Log("Expect exactly 0 dirty journal entry for the precompile snapshot")
if stateDB.DebugDirtiesCount() != 0 {
s.T().Log("Expect exactly 1 dirty journal entry for the precompile snapshot")
if stateDB.DebugDirtiesCount() != 1 {
debugDirtiesCountMismatch(stateDB, s.T())
s.FailNow("expected 0 dirty journal changes")
s.FailNow("expected 1 dirty journal changes")
}

s.T().Log("Expect no change since the StateDB has not been committed")
Expand Down

0 comments on commit caddee0

Please sign in to comment.