python/tests: make the test_assoc_group_fail2() test more resilient against timing
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2018 04:31:03 +0000 (06:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jul 2018 18:31:13 +0000 (20:31 +0200)
commitd08efa7f90e97f1f797d09f7519076646110cb45
treefe7c52315daae8e8c73dd1abc5af8f68afdf183c
parent93f61639a64f0b3156437b75c31330aa189d3db7
python/tests: make the test_assoc_group_fail2() test more resilient against timing

On a busy system [e]poll() on the server will mark both the
old connection fd and also the listening fd as readable.

epoll() returns the events in order, so the server processes the
disconnect first.

With poll() we don't have an order of the events and the
server is likely to process the connect before the disconnect.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/tests/dcerpc/raw_protocol.py