Skip to content
This repository
Browse code

ignore different streaming behavior between ubuntu and osx in integra…

…tion test
  • Loading branch information...
commit 895b09b207775e7204ae1e0937a45a9dd971fd3f 1 parent 7ba32be
Konstantin Haase rkh authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 test/integration_test.rb
5 test/integration_test.rb
@@ -20,12 +20,13 @@ class IntegrationTest < Test::Unit::TestCase
20 20
21 21 it 'streams' do
22 22 next if server.name == "webrick"
23   - times, chunks = [], []
  23 + times, chunks = [Time.now], []
24 24 server.get_stream do |chunk|
  25 + next if chunk.empty?
25 26 chunks << chunk
26 27 times << Time.now
27 28 end
28   - assert_equal ["", "a", "b"], chunks
  29 + assert_equal ["a", "b"], chunks
29 30 assert times[1] - times[0] < 1
30 31 assert times[2] - times[1] > 1
31 32 end

0 comments on commit 895b09b

Please sign in to comment.
Something went wrong with that request. Please try again.