Actually fix flaky test lmao

This commit is contained in:
Saundra Castaneda
2018-08-24 09:05:56 -05:00
parent 605a7ddfb4
commit 422da6a07b

View File

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