summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-01-18 18:07:04 +0000
committerJonathan Robie <jonathan@apache.org>2010-01-18 18:07:04 +0000
commit71a8e5584514b66f080675fa3b076daf16d9aa7f (patch)
tree1aa6b451fb2cca72dfe97af7f6ae8939969b1485
parentac4fab75fe4bc3e763b108c0554d16d4afa3adbe (diff)
downloadqpid-python-71a8e5584514b66f080675fa3b076daf16d9aa7f.tar.gz
Commiting John Dunning's revisions to the XML client session test.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900488 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/tests/XmlClientSessionTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/XmlClientSessionTest.cpp b/cpp/src/tests/XmlClientSessionTest.cpp
index b59abbf2cc..d64c5e47f0 100644
--- a/cpp/src/tests/XmlClientSessionTest.cpp
+++ b/cpp/src/tests/XmlClientSessionTest.cpp
@@ -64,6 +64,7 @@ class SubscribedLocalQueue : public LocalQueue {
public:
SubscribedLocalQueue(SubscriptionManager& subs) : subscriptions(subs) {}
Message get () { return pop(); }
+ Message get (sys::Duration timeout) { return pop(timeout); }
virtual ~SubscribedLocalQueue() {}
};
@@ -129,7 +130,7 @@ QPID_AUTO_TEST_CASE(testXmlBinding) {
f.session.messageTransfer(qpid::client::arg::content=message, qpid::client::arg::destination="xml");
- Message m2 = localQueue.get();
+ Message m2 = localQueue.get(1);
BOOST_CHECK_EQUAL(m, m2.getData());
}