Просмотр исходного кода

Add a sleep to (maybe) fix a test on Travis CI

pull/509/head
Luke Bakken 5 лет назад
Родитель
Сommit
c3d712b3e3
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: CC62EF7B15FC0213
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      test/lager_test_backend.erl

+ 2
- 1
test/lager_test_backend.erl Просмотреть файл

@ -1790,7 +1790,7 @@ async_threshold_test_() ->
%% serialize on mailbox
_ = gen_event:which_handlers(lager_event),
timer:sleep(500),
timer:sleep(1000),
%% By now the flood of messages should have forced the backend throttle
%% to turn off async mode, but it's possible all outstanding requests
@ -1812,6 +1812,7 @@ async_threshold_test_() ->
timer:sleep(1000),
lager:info("hello world"),
_ = gen_event:which_handlers(lager_event),
timer:sleep(1000),
%% async is true again now that the mailbox has drained
?assertEqual(true, lager_config:get(async)),

Загрузка…
Отмена
Сохранить