summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2015-01-27 11:53:26 +0000
committerSimon MacMullen <simon@rabbitmq.com>2015-01-27 11:53:26 +0000
commit5ade32876106ec6335400759f619627430886d4f (patch)
treeef71117db0637809d05d07db6132b8258209702b /test/src
parent779c886a4fefd526dd2834df20ad25812f87902a (diff)
downloadrabbitmq-server-git-5ade32876106ec6335400759f619627430886d4f.tar.gz
Fix tests.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/rabbit_tests.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/src/rabbit_tests.erl b/test/src/rabbit_tests.erl
index f19c361e94..c26dcf32aa 100644
--- a/test/src/rabbit_tests.erl
+++ b/test/src/rabbit_tests.erl
@@ -2262,7 +2262,7 @@ queue_index_publish(SeqIds, Persistent, Qi) ->
MsgId = rabbit_guid:gen(),
QiM = rabbit_queue_index:publish(
MsgId, SeqId, #message_properties{size = 10},
- Persistent, QiN),
+ Persistent, infinity, QiN),
ok = rabbit_msg_store:write(MsgId, MsgId, MSCState),
{QiM, [{SeqId, MsgId} | SeqIdsMsgIdsAcc]}
end, {Qi, []}, SeqIds),
@@ -2285,7 +2285,8 @@ test_queue_index_props() ->
fun(Qi0) ->
MsgId = rabbit_guid:gen(),
Props = #message_properties{expiry=12345, size = 10},
- Qi1 = rabbit_queue_index:publish(MsgId, 1, Props, true, Qi0),
+ Qi1 = rabbit_queue_index:publish(
+ MsgId, 1, Props, true, infinity, Qi0),
{[{MsgId, 1, Props, _, _}], Qi2} =
rabbit_queue_index:read(1, 2, Qi1),
Qi2