mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
Actually fix flaky test lmao
This commit is contained in:
@@ -53,8 +53,8 @@ describe "lint test" do
|
||||
end
|
||||
|
||||
it "host returns 200" do
|
||||
uri = URI(data["host"])
|
||||
uri << uri.ends_with? '/' ? 'ping' : '/ping'
|
||||
uri_end = data["host"].end_with?('/') ? 'ping' : '/ping'
|
||||
uri = URI(data["host"] + uri_end)
|
||||
res = Net::HTTP.get_response(uri)
|
||||
assert_equal "200", res.code, "Expected 200 response from #{uri}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user