Fix flaky test

This commit is contained in:
Saundra
2018-08-23 18:22:12 -05:00
committed by GitHub
parent 3c87b74428
commit 605a7ddfb4

View File

@@ -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