Skip to content

Commit

Permalink
Increase smt max level in tests to avoid failures due to conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Nov 1, 2024
1 parent 2a060bd commit 8cc015f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go-sdk/internal/sparse-merkle-tree/smt/smt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *MerkleTreeTestSuite) TestNewMerkleTree() {
}

func (s *MerkleTreeTestSuite) TestAddNode() {
mt, err := NewMerkleTree(s.db, 10)
mt, err := NewMerkleTree(s.db, 64)
assert.NoError(s.T(), err)

x, _ := new(big.Int).SetString("9198063289874244593808956064764348354864043212453245695133881114917754098693", 10)
Expand Down Expand Up @@ -166,7 +166,7 @@ func (s *MerkleTreeTestSuite) TestAddNode() {
}

func (s *MerkleTreeTestSuite) TestAddNodeFailExistingKey() {
mt, err := NewMerkleTree(s.db, 10)
mt, err := NewMerkleTree(s.db, 64)
assert.NoError(s.T(), err)

x, _ := new(big.Int).SetString("9198063289874244593808956064764348354864043212453245695133881114917754098693", 10)
Expand All @@ -192,7 +192,7 @@ func (s *MerkleTreeTestSuite) TestAddNodeFailExistingKey() {
}

func (s *MerkleTreeTestSuite) TestGenerateProof() {
const levels = 10
const levels = 64
mt, _ := NewMerkleTree(s.db, levels)

alice := testutils.NewKeypair()
Expand Down Expand Up @@ -271,7 +271,7 @@ func (s *MerkleTreeTestSuite) TestVerifyProof() {
}

func (s *MerkleTreeTestSuite) TestSqliteStorage() {
mt, err := NewMerkleTree(s.db, 10)
mt, err := NewMerkleTree(s.db, 64)
assert.NoError(s.T(), err)
assert.NotNil(s.T(), mt)

Expand Down

0 comments on commit 8cc015f

Please sign in to comment.