Repository navigation
Commit 33ca46a
committed
test(utils): swap the escaped publish by rename in the identity-undo row
The row held the bytes equal and changed the file by rmSync plus writeFileSync of
the same 13 bytes. On ext4 an unlink plus a create reuses dev, ino and size, so the
guard at safeWriteJson.ts:202 read an unchanged identity and unlinked, which is the
expected false to be true at safeWriteJson.test.ts:1352:44 that CI job 129946625964
reported while the Windows arm was green. A rename moves the inode on ext4 and on
NTFS alike and is how the guarded writer itself replaces a file, so the swap now
states the identity change the row asserts on every runner. The assertions are
unchanged.1 parent 44a862d commit 33ca46a
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | | - | |
1347 | | - | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1348 | 1355 | | |
1349 | 1356 | | |
1350 | 1357 | | |
| |||
0 commit comments