You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Altering the included integration test does not cause the test to fail as expected:
# from spec/integration/chunked_streaming_spec.rbrequire'spec_helper'requireFile.join(File.dirname(__FILE__),'../../','lib/goliath/test_helper_streaming')requireFile.join(File.dirname(__FILE__),'../../','lib/goliath')classChunkedStreaming < Goliath::APIdefresponse(env)EM.next_tickdoenv.chunked_stream_send("ignored")# originally "chunked"env.chunked_stream_closeendheaders={'Content-Type'=>'text/plain','X-Stream'=>'Goliath'}chunked_streaming_response(200,headers)enddefon_close(env)endenddescribe"ChunkedStreaming"doincludeGoliath::TestHelperlet(:err){Proc.new{ |c| fail"HTTP Request failed #{c.response}"}}it"should stream content"dowith_api(ChunkedStreaming,{:verbose=>true,:log_stdout=>true})do |server|
streaming_client_connect('/streaming')do |client|
# this should raise an RSpec::ExpectationNotMet,# however this block is never actually calledclient.receive.should == "chunked"endendendend
Running the above test (using bundle exec rspec spec/integration/chunked_streaming_spec.rb) incorrectly still passes, which leads me to believe the StreamingHelper itself is broken. This was checked against master.
The text was updated successfully, but these errors were encountered:
Altering the included integration test does not cause the test to fail as expected:
Running the above test (using
bundle exec rspec spec/integration/chunked_streaming_spec.rb
) incorrectly still passes, which leads me to believe theStreamingHelper
itself is broken. This was checked againstmaster
.The text was updated successfully, but these errors were encountered: