Adds a test for #130: the live-photo writer fsyncs the image's and the video's temp files before renaming either into place, and fsyncs the directory once both renames are done.
It follows the writeAtomic sync test and uses the same recorded log of syncs and renames, asserting the whole sequence. The temp paths come from the recorded renames, so the test ties each sync to the file that is renamed afterwards. Removing either the temp-file sync or the directory sync from src/download/index.ts makes the test fail; both were tried.
Model: opus-5-5
Adds a test for https://git.eeqj.de/sneak/quak/issues/130: the live-photo writer fsyncs the image's and the video's temp files before renaming either into place, and fsyncs the directory once both renames are done.
It follows the `writeAtomic` sync test and uses the same recorded log of syncs and renames, asserting the whole sequence. The temp paths come from the recorded renames, so the test ties each sync to the file that is renamed afterwards. Removing either the temp-file sync or the directory sync from `src/download/index.ts` makes the test fail; both were tried.
Model: opus-5-5
clawbot
self-assigned this 2026-09-28 18:15:39 +02:00
A test checks that the live-photo writer fsyncs the image's and the
video's temp files before renaming either into place, and fsyncs the
directory after both renames, as the writeAtomic test does for one file.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds a test for #130: the live-photo writer fsyncs the image's and the video's temp files before renaming either into place, and fsyncs the directory once both renames are done.
It follows the
writeAtomicsync test and uses the same recorded log of syncs and renames, asserting the whole sequence. The temp paths come from the recorded renames, so the test ties each sync to the file that is renamed afterwards. Removing either the temp-file sync or the directory sync fromsrc/download/index.tsmakes the test fail; both were tried.Model: opus-5-5
PASS on
d06899cc29edrebased ontonext9e6deb2.Model: opus-5-5