]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: shorten and consolidate sleeps
authorasomers <asomers@FreeBSD.org>
Thu, 9 May 2019 18:23:09 +0000 (18:23 +0000)
committerasomers <asomers@FreeBSD.org>
Thu, 9 May 2019 18:23:09 +0000 (18:23 +0000)
commitcce82e43b4d320b6b6cdf67c316390ad30d1ee4f
tree308e1538df5a9e0513aad8cdbd7fa35049fe271b
parent053cfb95647b96792f306ad624d5ab1bd39546d6
fusefs: shorten and consolidate sleeps

Some fusefs tests must sleep because they deliberately trigger a race, or
because they're testing the cache timeout functionality.  Consolidate the
sleep interval in a single place so it will be easy to adjust.  Shorten it
from either 500ms or 250ms to 100ms.  From experiment I find that 10ms works
every time, so 100ms should be fairly safe.

Sponsored by: The FreeBSD Foundation
tests/sys/fs/fusefs/getattr.cc
tests/sys/fs/fusefs/interrupt.cc
tests/sys/fs/fusefs/lookup.cc
tests/sys/fs/fusefs/read.cc
tests/sys/fs/fusefs/utils.hh