diff --git a/test/integration_test.rb b/test/integration_test.rb index 96f99429..7674bc6c 100644 --- a/test/integration_test.rb +++ b/test/integration_test.rb @@ -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