Skip to content

Commit 8a171dc

Browse files
authored
core/rawdb: report truncateErr in concurrent truncate failure (#32651)
1 parent 339cae8 commit 8a171dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/rawdb/freezer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func TestFreezerConcurrentModifyTruncate(t *testing.T) {
239239
// fails, otherwise it succeeds. In either case, the freezer should be positioned
240240
// at 10 after both operations are done.
241241
if truncateErr != nil {
242-
t.Fatal("concurrent truncate failed:", err)
242+
t.Fatal("concurrent truncate failed:", truncateErr)
243243
}
244244
if !(errors.Is(modifyErr, nil) || errors.Is(modifyErr, errOutOrderInsertion)) {
245245
t.Fatal("wrong error from concurrent modify:", modifyErr)

0 commit comments

Comments
 (0)