summaryrefslogtreecommitdiff
path: root/cpp/src/tests/receiver.cpp
diff options
context:
space:
mode:
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;