]> Sergey Matveev's repositories - public-inbox.git/commit
t/lei-watch.t: improve test reliability
authorEric Wong <e@80x24.org>
Sun, 25 Jul 2021 11:15:06 +0000 (11:15 +0000)
committerEric Wong <e@80x24.org>
Sun, 25 Jul 2021 11:15:28 +0000 (11:15 +0000)
commit7a606a434c52a7c2a97152d2b216381b9612ae27
treea8ef043c80f3ed9ecdca3cd588e1534edac83f56
parent36020c1e6284f22c8c4b10b4e418f66f74b28a97
t/lei-watch.t: improve test reliability

On single CPU (and overloaded SMP) systems, we can't rely on
inotify in lei-daemon firing before a "lei note-event done"
client hits it.  So force in a single tick() to ensure the
scheduler can yield to lei-daemon and see the inotify wakeup
before "lei note-event done" to commit the write.
t/lei-watch.t