diff options
author | Dan Gudmundsson <[email protected]> | 2013-06-05 10:52:47 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-06-05 10:52:47 +0200 |
commit | cb5bd884c96bdb0590162638530ea52b8f549985 (patch) | |
tree | 7b0adf52289b6f952fad16449c204bbad1a39222 /lib/mnesia/test/mnesia_isolation_test.erl | |
parent | 927982b8754ceada8b6d76225475f54b410de9e9 (diff) | |
download | otp-cb5bd884c96bdb0590162638530ea52b8f549985.tar.gz otp-cb5bd884c96bdb0590162638530ea52b8f549985.tar.bz2 otp-cb5bd884c96bdb0590162638530ea52b8f549985.zip |
mnesia: Fix (timing issue) testcase
Diffstat (limited to 'lib/mnesia/test/mnesia_isolation_test.erl')
-rw-r--r-- | lib/mnesia/test/mnesia_isolation_test.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mnesia/test/mnesia_isolation_test.erl b/lib/mnesia/test/mnesia_isolation_test.erl index 3273bc4d40..d57f976d1f 100644 --- a/lib/mnesia/test/mnesia_isolation_test.erl +++ b/lib/mnesia/test/mnesia_isolation_test.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2010. All Rights Reserved. +%% Copyright Ericsson AB 1997-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -613,11 +613,11 @@ unbound2(Config) when is_list(Config) -> ?match_receive({B, continuing}), %% B should now be in lock queue. - A ! continue, - ?match_receive({A, {atomic, ok}}), - ?match_receive({B, {atomic, [{ul,{key,{17,42}},val}]}}), + A ! continue, + ?match_multi_receive([{A, {atomic, ok}}, + {B, {atomic, [{ul,{key,{17,42}},val}]}}]), ok. - + receiver() -> receive {_Pid, begin_trans} -> |