Commit 2b35e17
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 1a60ee6 commit 2b35e17
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