From 8cc015f79f516b03e1eb05fcaae217b8ac389a77 Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Fri, 1 Nov 2024 11:26:22 -0400 Subject: [PATCH] Increase smt max level in tests to avoid failures due to conflicts Signed-off-by: Jim Zhang --- go-sdk/internal/sparse-merkle-tree/smt/smt_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go-sdk/internal/sparse-merkle-tree/smt/smt_test.go b/go-sdk/internal/sparse-merkle-tree/smt/smt_test.go index 0a529c5..ce70116 100644 --- a/go-sdk/internal/sparse-merkle-tree/smt/smt_test.go +++ b/go-sdk/internal/sparse-merkle-tree/smt/smt_test.go @@ -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) @@ -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) @@ -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() @@ -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)