1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Yusuke Endoh 26c1cf6a60 test/webrick/test_httpresponse.rb: Use a longer indicator for crack
"hack" was too short.  The tests checks the error html, which includes
hostname.  GitHub Actions hostname seems randomly generated, and it may
include the indicator string.

https://github.com/ruby/ruby/runs/784896235
```
  1) Failure:
WEBrick::TestHTTPResponse#test_prevent_response_splitting_cookie_headers_cr [/home/runner/work/ruby/ruby/src/test/webrick/test_httpresponse.rb:71]:
Expected /hack/ to not match "HTTP/1.1 500 Internal Server Error\r\nContent-Type: text/html; charset=ISO-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n<HTML>\n  <HEAD><TITLE>Internal Server Error</TITLE></HEAD>\n  <BODY>\n    <H1>Internal Server Error</H1>\n    WEBrick::HTTPResponse::InvalidHeader\n    <HR>\n    <ADDRESS>\n     WEBrick/1.6.0 (Ruby/2.8.0/2020-06-18) at\n     fv-az89.dddawhu1s14uzpjkiz5fhackre.cx.internal.cloudapp.net:80\n    </ADDRESS>\n  </BODY>\n</HTML>\n".
```

This change uses longer indicator "cracked_indicator_for_test" instead.
2020-06-19 00:57:18 +09:00
..
-ext- Make Thread#thread_variable? similar to #thread_variable_get 2020-05-25 21:38:35 -07:00
base64
benchmark
bigdecimal
cgi
coverage
csv Removed trailing spaces [ci skip] 2020-05-14 19:57:39 +09:00
date
dbm
did_you_mean Sync did_you_mean 2020-06-06 13:02:08 -04:00
digest
drb Explicitly loading with envutil.rb 2020-05-28 14:41:08 +09:00
dtrace
erb
etc
excludes
fiber Improved assertions 2020-06-09 21:42:25 +09:00
fiddle [ruby/fiddle] Improve documentation on how to correctly free memory and free memory in tests (#33) 2020-05-23 14:34:07 +09:00
fileutils Revert "[ruby/fileutils] Make verbose output go to stdout instead of stderr" 2020-06-12 19:02:50 +09:00
gdbm [ruby/gdbm] Workaround for GitHub Actions 2020-06-09 20:54:52 +09:00
io Use %w instead of %i not to create unused IDs 2020-05-09 20:13:30 +09:00
irb Fix typos 2020-05-09 14:22:04 +09:00
json
lib test/lib/jit_support.rb: Let JIT tests skip on centos8 2020-05-12 17:48:31 +09:00
logger [ruby/logger] Let Logger#reopen not raise on nil log devices 2020-06-11 13:54:04 +09:00
matrix [ruby/matrix] Add Matrix#adjoint [#14] 2020-05-01 03:25:15 -04:00
mkmf
monitor
net Try using longer read_timeout for --jit-wait 2020-06-14 15:01:15 -07:00
nkf
objspace
open-uri
openssl [ruby/openssl] ssl: temporarily remove SSLContext#add_certificate_chain_file 2020-05-13 15:47:51 +09:00
optparse
ostruct
pathname
psych [ruby/psych] Fixing compatibility with libyaml 0.2.5 2020-06-05 11:49:56 +09:00
racc
rdoc [ruby/rdoc] Check uninitialized instance variable in test 2020-05-24 23:47:24 +09:00
readline Restore class variable setting for tests 2020-05-14 12:27:33 +09:00
reline [ruby/reline] Add a test of autowrap for yamatanooroti 2020-05-17 19:26:53 +09:00
resolv
rinda Explicitly loading with envutil.rb 2020-05-28 14:41:08 +09:00
ripper Introduce find pattern [Feature #16828] 2020-06-14 09:24:36 +09:00
ruby Allow refining a frozen class 2020-06-18 08:22:40 -07:00
rubygems test/rubygems/test_gem_package.rb: Skip a test when TMPDIR is too long 2020-06-17 23:28:51 +09:00
sdbm
socket test/socket/test_addrinfo.rb: Fix syntax error 2020-06-04 11:29:39 +09:00
stringio
strscan
syslog
uri Fakes IPSocket.getaddress in the whole method 2020-05-06 16:06:25 +09:00
webrick test/webrick/test_httpresponse.rb: Use a longer indicator for crack 2020-06-19 00:57:18 +09:00
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Make mutating the result of SortedSet#to_a not affect the set 2020-06-11 14:02:00 -07:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb Correctly remove temporary directory if path yielded is mutated 2020-05-29 07:06:46 -07:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb