Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from slfritchie/slf/icky-hack-for-ct-failures
Browse files Browse the repository at this point in the history
Quick hack to fix CT tests
  • Loading branch information
cmeiklejohn committed Oct 5, 2015
2 parents cdda830 + a0191a9 commit f0e549e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
warnings_as_errors,
{platform_define, "^[0-9]+", namespaced_types},
{parse_transform, lager_transform}]}.
{cover_enabled, false}.
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{edoc_opts, [{preprocess, true}]}.
1 change: 1 addition & 0 deletions src/plumtree_broadcast.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
%%
%% -------------------------------------------------------------------
-module(plumtree_broadcast).
-compile({parse_transform, lager_transform}).

-behaviour(gen_server).

Expand Down
1 change: 1 addition & 0 deletions src/plumtree_metadata_exchange_fsm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
%%
%% -------------------------------------------------------------------
-module(plumtree_metadata_exchange_fsm).
-compile({parse_transform, lager_transform}).

-behaviour(gen_fsm).

Expand Down
1 change: 1 addition & 0 deletions src/plumtree_metadata_hashtree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
%%
%% -------------------------------------------------------------------
-module(plumtree_metadata_hashtree).
-compile({parse_transform, lager_transform}).

-behaviour(gen_server).

Expand Down
1 change: 1 addition & 0 deletions src/plumtree_metadata_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
%%
%% -------------------------------------------------------------------
-module(plumtree_metadata_manager).
-compile({parse_transform, lager_transform}).

-behaviour(gen_server).
-behaviour(plumtree_broadcast_handler).
Expand Down
1 change: 1 addition & 0 deletions src/plumtree_peer_service.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
%% -------------------------------------------------------------------

-module(plumtree_peer_service).
-compile({parse_transform, lager_transform}).

-export([join/1,
join/2,
Expand Down
1 change: 1 addition & 0 deletions src/plumtree_peer_service_gossip.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
%% -------------------------------------------------------------------

-module(plumtree_peer_service_gossip).
-compile({parse_transform, lager_transform}).

-behavior(gen_server).

Expand Down
1 change: 1 addition & 0 deletions src/plumtree_peer_service_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
%% -------------------------------------------------------------------

-module(plumtree_peer_service_manager).
-compile({parse_transform, lager_transform}).

-behaviour(gen_server).

Expand Down
5 changes: 3 additions & 2 deletions test/cluster_membership_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
%% -------------------------------------------------------------------

-module(cluster_membership_SUITE).
-compile({parse_transform, lager_transform}).

-compile({parse_transform, lager_transform}).

Expand Down Expand Up @@ -70,7 +71,7 @@ init_per_testcase(Case, Config) ->
Nodes = plumtree_test_utils:pmap(fun(N) ->
plumtree_test_utils:start_node(N, Config, Case)
end, [jaguar, shadow, thorn, pyros]),
{ok, _} = ct_cover:add_nodes(Nodes),
%%%%%%%%%%%%%%%%%%%%%%%%%% {ok, _} = ct_cover:add_nodes(Nodes),
[{nodes, Nodes}|Config].

end_per_testcase(_, _Config) ->
Expand All @@ -83,7 +84,7 @@ all() ->

singleton_test(Config) ->
Nodes = proplists:get_value(nodes, Config),
ok = ct_cover:remove_nodes(Nodes),
%%%%%%%%%%%%%%%%%%%%%%%%%% ok = ct_cover:remove_nodes(Nodes),
[[Node] = plumtree_test_utils:get_cluster_members(Node) || Node <- Nodes],
ok.

Expand Down
3 changes: 2 additions & 1 deletion test/metadata_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
%% -------------------------------------------------------------------

-module(metadata_SUITE).
-compile({parse_transform, lager_transform}).

-compile({parse_transform, lager_transform}).

Expand Down Expand Up @@ -66,7 +67,7 @@ init_per_testcase(Case, Config) ->
Nodes = plumtree_test_utils:pmap(fun(N) ->
plumtree_test_utils:start_node(N, Config, Case)
end, [electra, katana, flail, gargoyle]),
{ok, _} = ct_cover:add_nodes(Nodes),
%%%%%%%%%%%%%%%%%%%%%%%%%% {ok, _} = ct_cover:add_nodes(Nodes),
[{nodes, Nodes}|Config].

end_per_testcase(_, _Config) ->
Expand Down

0 comments on commit f0e549e

Please sign in to comment.