mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
test_http11: make Digest
use thread-safe (#2744)
This commit is contained in:
parent
f8acac1f07
commit
1e4372cca1
1 changed files with 2 additions and 2 deletions
|
@ -132,9 +132,9 @@ class Http11ParserTest < Minitest::Test
|
|||
res = count.to_s + "/"
|
||||
|
||||
if readable
|
||||
res << Digest::SHA1.hexdigest(rand(count * 100).to_s) * (count / 40)
|
||||
res << Digest(:SHA1).hexdigest(rand(count * 100).to_s) * (count / 40)
|
||||
else
|
||||
res << Digest::SHA1.digest(rand(count * 100).to_s) * (count / 20)
|
||||
res << Digest(:SHA1).digest(rand(count * 100).to_s) * (count / 20)
|
||||
end
|
||||
|
||||
res
|
||||
|
|
Loading…
Reference in a new issue