Skip to content

Commit 16cd6c4

Browse files
committed
test(storage): cover eagain export lock reads
1 parent fcd6be3 commit 16cd6c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/storage.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ describe("storage", () => {
14421442
}
14431443
});
14441444

1445-
it.each(["EBUSY", "EPERM"] as const)(
1445+
it.each(["EBUSY", "EPERM", "EAGAIN"] as const)(
14461446
"rethrows %s when export cannot read the current storage file",
14471447
async (code) => {
14481448
const lockedStoragePath = join(testWorkDir, `accounts-${code}.json`);
@@ -1491,7 +1491,7 @@ describe("storage", () => {
14911491
},
14921492
);
14931493

1494-
it.each(["EBUSY", "EPERM"] as const)(
1494+
it.each(["EBUSY", "EPERM", "EAGAIN"] as const)(
14951495
"does not write an export file when %s happens while reading another storage path during a transaction",
14961496
async (code) => {
14971497
const transactionStoragePath = join(

0 commit comments

Comments
 (0)