Skip to content

Commit

Permalink
Fix several regexp warnings. (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored Jan 27, 2023
1 parent c566eb7 commit 8fd3ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/webrick/test_httpresponse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def test_send_body_proc_upgrade
IO.pipe do |r, w|
@res.send_response(w)
w.close
assert_match /Connection: upgrade\r\nUpgrade: text\r\n\r\nhello/, r.read
assert_match(/Connection: upgrade\r\nUpgrade: text\r\n\r\nhello/, r.read)
end
assert_empty logger.messages
end
Expand All @@ -292,7 +292,7 @@ def test_send_body_proc_stream
s2.write("hello")
s2.close_write
chunk = s2.read
assert_match /Connection: close\r\n\r\nhello/, chunk
assert_match(/Connection: close\r\n\r\nhello/, chunk)
s2.close

thread.join
Expand Down

0 comments on commit 8fd3ef1

Please sign in to comment.