selftest: Make setexpiry test much more reliable
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 May 2018 00:26:03 +0000 (12:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 May 2018 21:58:17 +0000 (23:58 +0200)
commit5ebe3183fded1ab060ed60baeedeac859d0c137e
tree021f081aea1bb66edb849114695f1213808b26e9
parent72e18d671c48045cbc162e0650926e4038fcbb3f
selftest: Make setexpiry test much more reliable

Rather than setting all the expiries and expecting that they will be done within 5 seconds,
measure and check the time individually for each record.

This should make this test much less prone to flapping.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue May 15 23:58:17 CEST 2018 on sn-devel-144
python/samba/tests/samba_tool/user.py