ignore different streaming behavior between ubuntu and osx in integration test

This commit is contained in:
Konstantin Haase 2012-03-08 07:48:30 +01:00
parent 7ba32beb63
commit 895b09b207
1 changed files with 3 additions and 2 deletions

View File

@ -20,12 +20,13 @@ class IntegrationTest < Test::Unit::TestCase
it 'streams' do
next if server.name == "webrick"
times, chunks = [], []
times, chunks = [Time.now], []
server.get_stream do |chunk|
next if chunk.empty?
chunks << chunk
times << Time.now
end
assert_equal ["", "a", "b"], chunks
assert_equal ["a", "b"], chunks
assert times[1] - times[0] < 1
assert times[2] - times[1] > 1
end