Commit 4e005f6
committed
fix: stabilize TestWatchFile on Windows
On Windows, fsnotify may deliver the write event before the file content
is fully flushed, causing ReadInConfig to read stale data. Replace the
direct equality assertion with assert.Eventually to poll for the
expected value, giving the watcher time to pick up the final content.1 parent 59d3fd5 commit 4e005f6
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2462 | 2462 | | |
2463 | 2463 | | |
2464 | 2464 | | |
2465 | | - | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2466 | 2471 | | |
2467 | 2472 | | |
2468 | 2473 | | |
| |||
0 commit comments