Commit fa36608
committed
fix(ApiDataFactory): Add delay after cleanup for Docker file system propagation
In Docker environments with volume mounts, there can be a delay between:
1. DELETE HTTP request completing successfully
2. json-server writing updated db.json to disk
3. File system syncing the change in the Docker volume
4. Subsequent GET requests reading the updated data
Adding a 100ms delay after all deletions complete ensures file system
changes propagate before tests continue, preventing race conditions
where tests check for deletion immediately and find stale data.
This should resolve the 6 failing REST tests in CI that were finding
leftover data after calling _after() for cleanup.1 parent 9f4382a commit fa36608
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments