summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-11-21 11:49:40 +0100
committerJeremy Allison <jra@samba.org>2019-01-12 03:13:40 +0100
commitfb9f613364d6ec32ae22b12b1d6785f094154de2 (patch)
tree295473c591e44b812d7c977b2bb51c2450356ae2 /python
parent5466ed1232ee5e13335a79bf04e6205f901f6e21 (diff)
downloadsamba-fb9f613364d6ec32ae22b12b1d6785f094154de2.tar.gz
py:dcerpc/raw_protocol: consistently call self.recv_pdu(timeout=0.01) after auth3
When we don't expect a FAULT, we should wait a little bit to check there's no response to auth3 request. This reduces the raw_procol test from 45s down to 35s total runtime against Windows. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'python')
-rwxr-xr-xpython/samba/tests/dcerpc/raw_protocol.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/samba/tests/dcerpc/raw_protocol.py b/python/samba/tests/dcerpc/raw_protocol.py
index 384b7d47bca..f29255737a8 100755
--- a/python/samba/tests/dcerpc/raw_protocol.py
+++ b/python/samba/tests/dcerpc/raw_protocol.py
@@ -2982,7 +2982,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
req = self.generate_auth3(call_id=0,
auth_info=auth_info)
self.send_pdu(req)
- rep = self.recv_pdu()
+ rep = self.recv_pdu(timeout=0.01)
self.assertIsNone(rep)
self.assertIsConnected()
@@ -4231,6 +4231,8 @@ class TestDCERPC_BIND(RawDCERPCTest):
req = self.generate_auth3(call_id=0,
auth_info=auth_info)
self.send_pdu(req)
+ rep = self.recv_pdu(timeout=0.01)
+ self.assertIsNone(rep)
self.assertIsConnected()
# And now try a request without auth_info