summaryrefslogtreecommitdiff
path: root/cpp/src/tests/MessageUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/MessageUtils.h')
-rw-r--r--cpp/src/tests/MessageUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/tests/MessageUtils.h b/cpp/src/tests/MessageUtils.h
index a6a5aa65fd..2c205da20f 100644
--- a/cpp/src/tests/MessageUtils.h
+++ b/cpp/src/tests/MessageUtils.h
@@ -107,6 +107,7 @@ struct MessageUtils
AMQFrame data((AMQContentBody(content)));
msg->getFrames().append(data);
}
+ if (ttl) msg->computeExpiration(new broker::ExpiryPolicy);
return Message(msg, msg);
}
};