s4:dsdb/test/notification: make test_invalid_filter more resilient against ordering...
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Mar 2016 09:16:27 +0000 (10:16 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Mar 2016 21:58:18 +0000 (22:58 +0100)
commit1a315bec2720aafc9f0efa48eb36509fc26a6ebf
tree5e0d3af88d2564e48756ee39d0031dd9161a5474
parent0b500d413c5b76188c0c566318be7079b777237c
s4:dsdb/test/notification: make test_invalid_filter more resilient against ordering races

We saw a lot of flapping tests with:

    [1793(11038)/1892 at 1h55m26s]
    samba4.ldap.notification.python(ad_dc_ntvfs)(ad_dc_ntvfs)
    UNEXPECTED(failure):
    samba4.ldap.notification.python(ad_dc_ntvfs).__main__.LDAPNotificationTest.test_max_search(ad_dc_ntvfs)
    REASON: Exception: Exception: Traceback (most recent call last):
      File
    "/memdisk/autobuild/fl/b1782183/samba/source4/dsdb/tests/python/notification.py",
    line 181, in test_max_search
        self.assertEquals(num, ERR_TIME_LIMIT_EXCEEDED)
    AssertionError: 11 != 3

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/notification.py