diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-10-19 17:36:52 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-10-19 17:36:52 +0100 |
| commit | 588d183c81a77b93543ade52583d32b8759ee78e (patch) | |
| tree | bc42b97920556b0e285c45d4879faf661bf1d8fc /src | |
| parent | c195f7ded31b013c15be5d194c1cd41223ddedff (diff) | |
| download | rabbitmq-server-git-588d183c81a77b93543ade52583d32b8759ee78e.tar.gz | |
don't use foreach seeing as I'm not using it anywhere else
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_tests.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 71107f01c2..547287dbc9 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -891,8 +891,8 @@ test_msg_store() -> fun (MsgId, ok) -> rabbit_msg_store:sync( [MsgId], fun () -> Self ! {sync, MsgId} end) end, ok, MsgIds2ndHalf), - lists:foreach( - fun(MsgId) -> + lists:foldl( + fun(MsgId, ok) -> receive {sync, MsgId} -> ok after @@ -901,7 +901,7 @@ test_msg_store() -> [MsgId]), throw(timeout) end - end, MsgIds2ndHalf), + end, ok, MsgIds2ndHalf), %% it's very likely we're not dirty here, so the 1st half sync %% should hit a different code path ok = msg_store_sync(MsgIds1stHalf), |
