Skip to content

Commit 43f7494

Browse files
author
Thomas Arts
committed
Cleanup in test instead of introducing a race
Some test cleanup needed
1 parent 924eaf8 commit 43f7494

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/bitcask.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,6 +3408,7 @@ update_tstamp_stats_test_() ->
34083408

34093409
update_tstamp_stats_test2() ->
34103410
Dir = setup_testfolder("bc.tstamp.stats"),
3411+
bitcask_time:test__clear_fudge(), %% cleanup after previous test
34113412
bitcask_time:test__set_fudge(1),
34123413
try
34133414
B = init_dataset(Dir, [read_write, {max_file_size, 1000000}], []),

src/bitcask_time.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ tstamp() ->
3636
test__get(?KEY).
3737

3838
test__set_fudge(Amount) ->
39-
%% test__clear_fudge(),
4039
application:set_env(bitcask, ?KEY, Amount).
4140

4241
test__get_fudge() ->

0 commit comments

Comments
 (0)