Commit 2c3dd06
committed
The forced test run before the 2.56.0 cut failed once, in a #585 test
that saw a write it never made: `unsaved typing` landing in
`Work/Documentation/Vault CLI Cheatsheet.md`. That text belongs to the
#852 test that checks a watcher change refused over a dirty buffer does
not move the note's disk revision. Typing arms the store's 350 ms
debounced save, the test ended without settling it, and under turbo's
parallel load the timer fired while a later test was collecting
`writeCalls`, which the file shares across tests. Alone, the file was
green every time, which is why the leak went unnoticed in the cycle.
The test now ends by calling `persistNote` itself, which clears the
pending timer and writes the typing to the fake disk, and asserts that
this write does not move the revision either: the user's own save is
not a disk change. The store is untouched.
1 parent 703c688 commit 2c3dd06
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | 270 | | |
| |||
0 commit comments