Skip to content

Commit

Permalink
seed: tmp fix waiting on @TheGeorge
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp committed Jun 17, 2018
1 parent 7720b60 commit 3df6d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proper_target.erl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ init_strategy(Strat) ->
-spec cleanup_strategy() -> ok.
cleanup_strategy() ->
(strategy()):cleanup(),
erase('$strategy'), ok.
erase('$strategy'),
ok.

%% @private
-spec get_target(key(), tmap()) -> target().
Expand Down
1 change: 1 addition & 0 deletions test/proper_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,7 @@ seeded_test_() ->
QC = fun (Prop) ->
R = proper:counterexample(Prop, Opts),
proper:clean_garbage(),
catch proper_target:cleanup_strategy(),
R
end,
[[?_state_is_clean(), ?_assertEqual(QC(Prop),Check)]
Expand Down

0 comments on commit 3df6d2d

Please sign in to comment.