Permalink
Browse files

Getting all tests to run fine

  • Loading branch information...
1 parent 9876ad8 commit 31dbf5d109a835bf8611fdbd18d265463835e0c6 @ferd committed Dec 19, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 include/lager.hrl
  2. +3 −2 src/lager_deduper.erl
View
@@ -73,7 +73,7 @@
-define(INT_LOG(Level, Format, Args),
case ?SHOULD_LOG(Level) of
true ->
- ?NOTIFY(Level, self(), Format, Args);
+ catch(?NOTIFY(Level, self(), Format, Args));
_ ->
ok
end).
View
@@ -224,7 +224,7 @@ safe_notify(Event) ->
end.
--ifdef(TEST_CANCELLED).
+-ifdef(TEST).
setup(Threshold, Timer) ->
{ok, DedupPid} = start_link(),
unlink(DedupPid),
@@ -239,7 +239,8 @@ cleanup(Pid) ->
lager_config:set(duplicate_threshold, 0),
lager_config:set(duplicate_limit, undefined),
lager_config:set(duplicate_quick_notification, false),
- exit(Pid, shutdown).
+ exit(Pid, shutdown),
+ timer:sleep(100).
low_threshold_test_() ->
{"Check that with low threshold, all messages are handled individually",

0 comments on commit 31dbf5d

Please sign in to comment.