Merge pull request #7230 from lafirest/fix/flakey_test
test(slow_subs): fix the flaky case, relax the range check
This commit is contained in:
commit
85d87a768a
|
@ -73,8 +73,8 @@ t_log_and_pub(_) ->
|
|||
|
||||
timer:sleep(2000),
|
||||
Size = ets:info(?TOPK_TAB, size),
|
||||
%% some time record maybe delete due to it expired
|
||||
?assert(Size =< 6 andalso Size >= 4,
|
||||
%% some time record maybe delete due to it expired or the ets size exceeds 5 due to race conditions
|
||||
?assert(Size =< 8 andalso Size >= 3,
|
||||
unicode:characters_to_binary(io_lib:format("size is :~p~n", [Size]))),
|
||||
|
||||
timer:sleep(3000),
|
||||
|
|
Loading…
Reference in New Issue