Remove checkready

Not required with new L0 start
This commit is contained in:
Martin Sumner 2019-02-26 20:37:46 +00:00
parent f4d68ae02f
commit bd3cef19e1

View file

@ -2327,15 +2327,7 @@ create_file_test() ->
undefined, undefined,
50000, 50000,
#sst_options{press_method = native}), #sst_options{press_method = native}),
lists:foreach(fun(X) -> {ok, SrcFN, StartKey, EndKey} = leveled_sst:sst_checkready(SP),
case checkready(SP) of
timeout ->
timer:sleep(X);
_ ->
ok
end end,
[50, 100, 200, 400, 800]),
{ok, SrcFN, StartKey, EndKey} = checkready(SP),
io:format("StartKey ~w EndKey ~w~n", [StartKey, EndKey]), io:format("StartKey ~w EndKey ~w~n", [StartKey, EndKey]),
?assertMatch({o, _, _, _}, StartKey), ?assertMatch({o, _, _, _}, StartKey),
?assertMatch({o, _, _, _}, EndKey), ?assertMatch({o, _, _, _}, EndKey),
@ -2348,14 +2340,6 @@ slow_fetch_test() ->
?assertMatch(not_present, log_slowfetch(2, not_present, "fake", 0, 1)), ?assertMatch(not_present, log_slowfetch(2, not_present, "fake", 0, 1)),
?assertMatch("value", log_slowfetch(2, "value", "fake", 0, 1)). ?assertMatch("value", log_slowfetch(2, "value", "fake", 0, 1)).
checkready(Pid) ->
try
leveled_sst:sst_checkready(Pid)
catch
exit:{timeout, _} ->
timeout
end.
timings_test() -> timings_test() ->
SW = os:timestamp(), SW = os:timestamp(),
timer:sleep(1), timer:sleep(1),