selftest: Make setexpiry test much more reliable
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 May 2018 00:26:03 +0000 (12:26 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Apr 2019 15:16:10 +0000 (15:16 +0000)
commit501e28cc8d6e818357e5954fa66168244f4cb7e2
tree007ff162d9c2c7dd04481e6fac1e1d702b8384b8
parentd1484add1fc9c498f65d6afb25a2eff00f2a6df6
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.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13867

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

(cherry picked from commit 5ebe3183fded1ab060ed60baeedeac859d0c137e)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Tue Apr  2 15:16:10 UTC 2019 on sn-devel-144
python/samba/tests/samba_tool/user.py