selftest: Avoid a build started just before midnight failing
authorAndrew Bartlett <abartlet@samba.org>
Sat, 2 Sep 2017 02:07:11 +0000 (14:07 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Sep 2017 04:56:26 +0000 (06:56 +0200)
commit070f24bc9d2201a5bfef64988dd7b2afcaec6040
tree0f7d5cdcdbe36111e4b20fc59f744b60b420c2c4
parent1e4c32e3ff7e8dbf6aef12c737c5330273854510
selftest: Avoid a build started just before midnight failing

By allowing 41 or 42 days, we still test the expiry but are less sensitive to the
current time.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/pam_winbind_warn_pwd_expire.py