Skip to content

Commit

Permalink
test: Skip tests for state compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Apr 16, 2024
1 parent 6097dce commit efa20e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions x/evm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ package keeper_test
import (
_ "embed"
"math/big"
"os"
"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stretchr/testify/suite"

sdkmath "cosmossdk.io/math"

Expand All @@ -31,6 +33,15 @@ type KeeperTestSuite struct {
var s *KeeperTestSuite

func TestKeeperTestSuite(t *testing.T) {
if os.Getenv("benchmark") != "" {
t.Skip("Skipping Gingko Test")
}
s = new(KeeperTestSuite)
s.EnableFeemarket = false
s.EnableLondonHF = true
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}
Expand Down
6 changes: 5 additions & 1 deletion x/evm/keeper/state_transition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,8 @@ type StateDBCommit interface {
}

func (suite *KeeperTestSuite) TestAccountNumberOrder() {
suite.T().Skip("Account number is no longer reassigned to be in order")

// New accounts should have account numbers in sorted order on Commit(),
// NOT when they were first touched.

Expand Down Expand Up @@ -1110,7 +1112,7 @@ func (suite *KeeperTestSuite) TestNoopStateChange_UnmodifiedIAVLTree() {
suite.Require().Equal(int64(0), vmdb.GetBalance(addr).Int64())

// Back to a non-zero balance same as before
vmdb.SubBalance(addr, big.NewInt(10))
vmdb.AddBalance(addr, big.NewInt(10))
},
},
{
Expand Down Expand Up @@ -1211,6 +1213,8 @@ func (suite *KeeperTestSuite) TestNoopStateChange_UnmodifiedIAVLTree() {
}

func (suite *KeeperTestSuite) TestStateDB_IAVLConsistency() {
suite.T().Skip("StateDB no longer state compatible")

addr1 := common.BigToAddress(big.NewInt(1))
addr2 := common.BigToAddress(big.NewInt(2))

Expand Down

0 comments on commit efa20e5

Please sign in to comment.