Skip to content

Commit 5b61c5c

Browse files
author
Goren G
committed
fix badger test case
1 parent 341e3b4 commit 5b61c5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ledger/db/badger_performance_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func TestBadgerPerformance_CheckBlockMissing(t *testing.T) {
175175
for i := 0; i < n; i++ {
176176
blk := generateBlock(t)
177177
txn.AddBlock(blk)
178-
buffer.WriteString(blk.Hash().String())
178+
buffer.WriteString(blk.GetHash().String())
179179
buffer.WriteString("\n")
180180
}
181181
return nil
@@ -221,7 +221,7 @@ func TestBadgerPerformance_ReadBlock(t *testing.T) {
221221
t.Fatal(err)
222222
}
223223
} else {
224-
if hash == blk.Hash() {
224+
if hash == blk.GetHash() {
225225
index++
226226
}
227227
}
@@ -280,7 +280,7 @@ func TestBadgerPerformance_ReadBlockByGoroutine(t *testing.T) {
280280
t.Fatal(err)
281281
}
282282
} else {
283-
if hash == blk.Hash() {
283+
if hash == blk.GetHash() {
284284
}
285285
}
286286
}

0 commit comments

Comments
 (0)