Skip to content

Commit

Permalink
Fix another refactoring glitch introduced with #27
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Mar 23, 2021
1 parent 14db874 commit 6cb8085
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 6cb8085

Please sign in to comment.