mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
DEV: Increase http timeouts in bin/qunit (#36260)
In slower CI environments, it seems that 2s is too short for this check
This commit is contained in:
@@ -337,8 +337,8 @@ class QunitRunner
|
|||||||
def check_server(port, name)
|
def check_server(port, name)
|
||||||
uri = URI("http://localhost:#{port}")
|
uri = URI("http://localhost:#{port}")
|
||||||
http = Net::HTTP.new(uri.host, uri.port)
|
http = Net::HTTP.new(uri.host, uri.port)
|
||||||
http.open_timeout = 2
|
http.open_timeout = 5
|
||||||
http.read_timeout = 2
|
http.read_timeout = 5
|
||||||
|
|
||||||
begin
|
begin
|
||||||
response = http.get("/")
|
response = http.get("/")
|
||||||
|
|||||||
Reference in New Issue
Block a user