From f71f9dfdca4372648b896c0b9b51a78f4ce61b5d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 20 May 2015 07:58:04 +0000 Subject: NO-JIRA: fix tests for python 2.4 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1680478 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/idle_timeout_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/tests/idle_timeout_tests.py b/qpid/cpp/src/tests/idle_timeout_tests.py index c3cc00746b..22a107a110 100755 --- a/qpid/cpp/src/tests/idle_timeout_tests.py +++ b/qpid/cpp/src/tests/idle_timeout_tests.py @@ -79,13 +79,13 @@ class AmqpIdleTimeoutTest(BrokerTest): # now 'hang' the client, the broker should disconnect start = time.time() - receiver.send_signal(signal.SIGSTOP) + os.kill(receiver.pid, signal.SIGSTOP) deadline = time.time() + 10 while time.time() < deadline: if count == len(self._broker.agent.getAllConnections()): break; self.assertEqual(count, len(self._broker.agent.getAllConnections())) - receiver.send_signal(signal.SIGCONT) + os.kill(receiver.pid, signal.SIGCONT) receiver.teardown() -- cgit v1.2.1