core/rawdb: report truncateErr in concurrent truncate failure (#32651)

This commit is contained in:
GarmashAlex 2025-09-18 09:46:51 +03:00 committed by Alvarez
parent 7dd6477444
commit 98a42fa176

View file

@ -239,7 +239,7 @@ func TestFreezerConcurrentModifyTruncate(t *testing.T) {
// fails, otherwise it succeeds. In either case, the freezer should be positioned
// at 10 after both operations are done.
if truncateErr != nil {
t.Fatal("concurrent truncate failed:", err)
t.Fatal("concurrent truncate failed:", truncateErr)
}
if !(errors.Is(modifyErr, nil) || errors.Is(modifyErr, errOutOrderInsertion)) {
t.Fatal("wrong error from concurrent modify:", modifyErr)