Skip to content

Commit

Permalink
Merge pull request #29 from lazyledger/ismail/minor_fix
Browse files Browse the repository at this point in the history
Fix minor refactoring glitch introduced with #27
  • Loading branch information
liamsi committed Mar 25, 2021
2 parents 14db874 + 6cb8085 commit babfaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func TestNodeVisitor(t *testing.T) {
data := generateRandNamespacedRawData(numLeaves, nidSize, leafSize)
n := New(sha256.New(), NamespaceIDSize(nidSize), NodeVisitor(collectNodeHashes))
for j := 0; j < numLeaves; j++ {
if err := n.Push(data[j][:nidSize]); err != nil {
if err := n.Push(data[j]); err != nil {
t.Errorf("err: %v", err)
}
}
Expand Down Expand Up @@ -604,7 +604,7 @@ func BenchmarkComputeRoot(b *testing.B) {
for i := 0; i < b.N; i++ {
n := New(sha256.New())
for j := 0; j < tt.numLeaves; j++ {
if err := n.Push(data[j][:tt.nidSize]); err != nil {
if err := n.Push(data[j]); err != nil {
b.Errorf("err: %v", err)
}
}
Expand Down

0 comments on commit babfaf9

Please sign in to comment.