Browse Source

Make sure we flush after app restart

pull/346/head
Mark Allen 9 years ago
parent
commit
82788b996c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/lager_test_backend.erl

+ 2
- 0
test/lager_test_backend.erl View File

@ -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…
Cancel
Save