Skip to content

Commit

Permalink
trying to fix travisci
Browse files Browse the repository at this point in the history
  • Loading branch information
TwP committed Mar 13, 2016
1 parent 117d98d commit 4551778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/appenders/test_async_flushing.rb
Expand Up @@ -144,9 +144,9 @@ def test_setting_negative_flush_period
end

def test_async_writes
@appender.auto_flushing = 3
@appender.flush_period = nil
@appender.async = true
@appender.auto_flushing = 3

event = Logging::LogEvent.new('TestLogger', @levels['warn'],
[1, 2, 3, 4], false)
Expand All @@ -155,6 +155,7 @@ def test_async_writes
assert_instance_of Logging::Appenders::Buffering::AsyncFlusher, flusher

@appender.append event
sleep 0.250
assert_nil(readline)

event.level = @levels['debug']
Expand Down

0 comments on commit 4551778

Please sign in to comment.