Skip to content

Commit

Permalink
restore server[:DocumentRootOptions] setting.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ko1 committed Feb 28, 2020
1 parent f7be85a commit cb681c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/webrick/test_filehandler.rb
Expand Up @@ -177,7 +177,8 @@ def test_filehandler
assert_equal("206", res.code, log.call)
assert_equal("multipart/byteranges", res.content_type, log.call)
}

ensure
server[:DocumentRootOptions].delete :NondisclosureName
end
end

Expand Down

0 comments on commit cb681c2

Please sign in to comment.