mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Removed case statement from riak_test_runner that was part of a previous implementation
This commit is contained in:
parent
0e4f2c8504
commit
1fb993cd03
@ -83,18 +83,8 @@ execute(TestModule, TestMetaData) ->
|
||||
NewGroupLeader = riak_test_group_leader:new_group_leader(self()),
|
||||
group_leader(NewGroupLeader, self()),
|
||||
|
||||
Pid = case proplists:get_value(confirm,
|
||||
proplists:get_value(exports, TestModule:module_info()),
|
||||
-1) of
|
||||
1 ->
|
||||
spawn_link(TestModule, confirm, [TestMetaData]);
|
||||
0 ->
|
||||
spawn_link(TestModule, confirm, []);
|
||||
%% This isn't reachable, because Arities greater than 1 are caught in confirm/3.
|
||||
%% still, better safe than sorry.
|
||||
BadArity ->
|
||||
spawn_link(fun() -> erlang:error("~p:confirm/~p is not exported.", [TestModule, BadArity]) end)
|
||||
end,
|
||||
Pid = spawn_link(TestModule, confirm, []),
|
||||
|
||||
Return = rec_loop(Pid, TestModule, TestMetaData),
|
||||
group_leader(GroupLeader, self()),
|
||||
Return.
|
||||
|
Loading…
Reference in New Issue
Block a user