瀏覽代碼

Make sure we flush after app restart

pull/346/head
Mark Allen 9 年之前
父節點
當前提交
82788b996c
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      test/lager_test_backend.erl

+ 2
- 0
test/lager_test_backend.erl 查看文件

@ -515,6 +515,8 @@ lager_test_() ->
application:stop(lager),
application:set_env(lager, traces, [{lager_test_backend, [{foo, bar}], debug}]),
lager:start(),
timer:sleep(5),
flush(),
lager:debug([{foo, bar}], "hello world"),
?assertEqual(1, count()),
application:unset_env(lager, traces),

Loading…
取消
儲存