Fix tests

This commit is contained in:
Luke Bakken 2021-12-20 09:10:52 -08:00 committed by Michael Klishin
parent 043641c99f
commit d1496a2c7c
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
2 changed files with 7 additions and 3 deletions

View File

@ -180,8 +180,12 @@ code_change(_OldVsn, State, _Extra) ->
safe_ets_lookup(Key, Default) ->
try
[{Key, Value}] = ets:lookup(?ETS_NAME, Key),
Value
case ets:lookup(?ETS_NAME, Key) of
[{Key, Value}] ->
Value;
[] ->
Default
end
catch
error:badarg ->
Default

View File

@ -88,7 +88,7 @@ disk_monitor_enable1(_Config) ->
application:set_env(rabbit, disk_monitor_failure_retry_interval, 100),
ok = rabbit_sup:stop_child(rabbit_disk_monitor_sup),
ok = rabbit_sup:start_delayed_restartable_child(rabbit_disk_monitor, [1000]),
undefined = rabbit_disk_monitor:get_disk_free(),
unknown = rabbit_disk_monitor:get_disk_free(),
Cmd = case os:type() of
{win32, _} -> " Le volume dans le lecteur C na pas de nom.\n"
" Le numéro de série du volume est 707D-5BDC\n"