Repository navigation
Commit cff3173
committed
Make the parse error tests independent of when the result cache is rewritten
The run that breaks a file finds nothing to save and leaves the result
cache as it was, and the next one rewrites it only when it can tell
from the file's stat that it changed, which it cannot in the same second.
Fixing the file back to its previous contents then re-analysed nothing
sometimes, which is right, as the cache still describes those contents.
The fixed file differs from them now.
The first test asserts the re-analysed files with result-cache-info too.
Amp-Thread-ID: https://ampcode.com/threads/T-01a1c5c8-8d5b-7459-a22c-beb8e7ba8a3b1 parent ff3026c commit cff3173
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | | - | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments