mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
restore server[:DocumentRootOptions] setting.
Surprisingly (at least for me), `server[:DocumentRootOptions]` on Webrick is global information and it affect the result of test_short_filename. Random order test fails because of global information change. I doubt it is bug, but to fix random order test, I restore the value.
This commit is contained in:
parent
f7be85a2b7
commit
cb681c20c0
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase
|
|||
assert_equal("206", res.code, log.call)
|
||||
assert_equal("multipart/byteranges", res.content_type, log.call)
|
||||
}
|
||||
|
||||
ensure
|
||||
server[:DocumentRootOptions].delete :NondisclosureName
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue