瀏覽代碼

Really bump up sleeps to fix tests on Travis CI

pull/509/head
Luke Bakken 5 年之前
父節點
當前提交
9991ac4571
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: CC62EF7B15FC0213
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      test/lager_test_backend.erl

+ 4
- 4
test/lager_test_backend.erl 查看文件

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

Loading…
取消
儲存