ignore different streaming behavior between ubuntu and osx in integration test
This commit is contained in:
parent
7ba32beb63
commit
895b09b207
|
@ -20,12 +20,13 @@ class IntegrationTest < Test::Unit::TestCase
|
||||||
|
|
||||||
it 'streams' do
|
it 'streams' do
|
||||||
next if server.name == "webrick"
|
next if server.name == "webrick"
|
||||||
times, chunks = [], []
|
times, chunks = [Time.now], []
|
||||||
server.get_stream do |chunk|
|
server.get_stream do |chunk|
|
||||||
|
next if chunk.empty?
|
||||||
chunks << chunk
|
chunks << chunk
|
||||||
times << Time.now
|
times << Time.now
|
||||||
end
|
end
|
||||||
assert_equal ["", "a", "b"], chunks
|
assert_equal ["a", "b"], chunks
|
||||||
assert times[1] - times[0] < 1
|
assert times[1] - times[0] < 1
|
||||||
assert times[2] - times[1] > 1
|
assert times[2] - times[1] > 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue