URL:
https://github.com/SSSD/sssd/pull/955
Author: pbrezina
Title: #955: tests: fix race confition in files provider tests
Action: opened
PR body:
"""
Lets give files provider more time to load changes from files to avoid
race condition failures. The files provider tests works like this:
1. File is changed
2. inotify callback is triggered in SSSD
3. Cache is updated
4. Assertions are done
This sleep is supposed to eliminated race condition between step 1 and 2
so tests do not continue before inotify callback had a chance to kick in.
One second was not enough in some slow virtual environments where the
test non-deterministicly failed (SSSD is starting, doing some initial tasks,
so it is possible that inotify callback is delayed a little bit).
Three seconds is a hopefully safe random value.
"""
To pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/955/head:pr955
git checkout pr955