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