You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/10/24 15:55:07 UTC
qpid-proton git commit: PROTON-1176: [python] remove unreliable file
descriptors test
Repository: qpid-proton
Updated Branches:
refs/heads/master 9f80e5753 -> 415a1f7ab
PROTON-1176: [python] remove unreliable file descriptors test
Removed a FD overflow test that is not reliable under both linux and windows.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/415a1f7a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/415a1f7a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/415a1f7a
Branch: refs/heads/master
Commit: 415a1f7ab6c76414a98b26883fe2d6c3ba26addd
Parents: 9f80e57
Author: Alan Conway <ac...@redhat.com>
Authored: Tue Oct 24 16:23:58 2017 +0100
Committer: Alan Conway <ac...@redhat.com>
Committed: Tue Oct 24 16:51:16 2017 +0100
----------------------------------------------------------------------
tests/python/proton_tests/utils.py | 31 -------------------------------
1 file changed, 31 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/415a1f7a/tests/python/proton_tests/utils.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/utils.py b/tests/python/proton_tests/utils.py
index 72711c7..1f20bba 100644
--- a/tests/python/proton_tests/utils.py
+++ b/tests/python/proton_tests/utils.py
@@ -161,34 +161,3 @@ class SyncRequestResponseTest(Test):
self.assertEquals(server.properties_received, True)
self.assertEquals(server.offered_capabilities_received, True)
self.assertEquals(server.desired_capabilities_received, True)
-
-class OutOfFdsTest(Test):
-
- def test_out_of_fds(self):
- """Create BlockingConnections until we run out of FDs, make sure we get an exception
- and not a crash"""
-
- server = EchoServer(Url(host="127.0.0.1", port=free_tcp_port()), self.timeout)
- server.start()
- server.wait()
-
- # Use up all the FDs
- dummy = os.tmpfile()
- fds = []
- try:
- while True: fds.append(os.dup(dummy.fileno()));
- except OSError, e:
- pass
-
- for i in [0, 1]: # Check the odd and even case
- try:
- BlockingConnection(server.url)
- fail("Expected ProtonException")
- except ProtonException, e:
- pass
- os.close(fds.pop())
-
- for f in fds: os.close(f)
- c = BlockingConnection(server.url, timeout=self.timeout)
- c.close()
- server.join(timeout=self.timeout)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org