summaryrefslogtreecommitdiffhomepage
path: root/init.js
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-08 14:57:56 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-07-03 10:53:20 -0300
commite2ab0eba4f7098eecb77a3494010f39b9d015a67 (patch)
treeb1aa5536ab1b8f51f597c38eec3730802a3da0cb /init.js
parent88f9f4ced3c3245c0c0f3a1d10f87bb05b8ecd1b (diff)
downloadmullvadvpn-e2ab0eba4f7098eecb77a3494010f39b9d015a67.tar.xz
mullvadvpn-e2ab0eba4f7098eecb77a3494010f39b9d015a67.zip
Refactor file notification monitoring in tests
Create a `PathWatcher` helper type that presents itself as an `Iterator` over events on a specified path. It also allows setting a timeout for waiting for each event, so that it doesn't block indefinately. Although it watches a specific path, in reality it watches the path's parent directory, so that it can continue watching the file if it gets removed and recreated.
Diffstat (limited to 'init.js')
0 files changed, 0 insertions, 0 deletions