spec/client_spec.rb in http-2-0.8.2 vs spec/client_spec.rb in http-2-0.8.3
- old
+ new
@@ -54,13 +54,13 @@
end
it 'should raise error on PUSH_PROMISE against non-idle stream' do
expect do
s = @client.new_stream
- s.send HEADERS
+ s.send HEADERS.dup
- @client << set_stream_id(f.generate(PUSH_PROMISE), s.id)
- @client << set_stream_id(f.generate(PUSH_PROMISE), s.id)
+ @client << set_stream_id(f.generate(PUSH_PROMISE.dup), s.id)
+ @client << set_stream_id(f.generate(PUSH_PROMISE.dup), s.id)
end.to raise_error(ProtocolError)
end
it 'should emit stream object for received PUSH_PROMISE' do
s = @client.new_stream