Skip to content

Commit a6c9f81

Browse files
committed
seed: tmp fix waiting on @TheGeorge
1 parent c762449 commit a6c9f81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/proper_target.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ init_strategy(Strat) ->
171171
-spec cleanup_strategy() -> ok.
172172
cleanup_strategy() ->
173173
(strategy()):cleanup(),
174-
erase('$strategy'), ok.
174+
erase('$strategy'),
175+
ok.
175176

176177
%% @private
177178
-spec get_target(key(), tmap()) -> target().

test/proper_tests.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ seeded_test_() ->
10471047
QC = fun (Prop) ->
10481048
R = proper:counterexample(Prop, Opts),
10491049
proper:clean_garbage(),
1050+
catch proper_target:cleanup_strategy(),
10501051
R
10511052
end,
10521053
[[?_state_is_clean(), ?_assertEqual(QC(Prop),Check)]

0 commit comments

Comments
 (0)