summaryrefslogtreecommitdiff
path: root/cpp/src/tests/receiver.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-21 14:48:58 +0000
committerAlan Conway <aconway@apache.org>2010-04-21 14:48:58 +0000
commit1a008057b08edf34f68b8b97ef886f2c1415aeba (patch)
tree7ae41cc93a3b68a81cf433a9c8dff872fd3d736b /cpp/src/tests/receiver.cpp
parentb7c74d4a77f802b5ec5b6177009f0a2937bde201 (diff)
downloadqpid-python-1a008057b08edf34f68b8b97ef886f2c1415aeba.tar.gz
Consistent use of string constants for message property keys in sender/receiver tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/receiver.cpp')
-rw-r--r--cpp/src/tests/receiver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/receiver.cpp b/cpp/src/tests/receiver.cpp
index e01954e31a..f1b462d6e4 100644
--- a/cpp/src/tests/receiver.cpp
+++ b/cpp/src/tests/receiver.cpp
@@ -61,6 +61,7 @@ struct Args : public qpid::TestOptions
};
const string EOS("eos");
+const string SN("sn");
class Receiver : public MessageListener, public FailoverManager::Command
{
@@ -99,7 +100,7 @@ void Receiver::received(Message& message)
bool Receiver::isDuplicate(Message& message)
{
- uint sn = message.getHeaders().getAsInt("sn");
+ uint sn = message.getHeaders().getAsInt(SN);
if (lastSn < sn) {
lastSn = sn;
return false;