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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue