Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Sep 26, 2018
1 parent 073098a commit 45d2754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def pri_method
e = assert_raise RuntimeError do
SamsonDatadogTracer.trace_method instance.class, :pub_method
end
e.message.must_include "Tracer already defined for pub_method"
e.message.must_include "apm_tracer wrapper already defined for pub_method"
end

[:pub_method, :pro_method, :pri_method].each do |method|
Expand Down
2 changes: 1 addition & 1 deletion plugins/new_relic/lib/samson_new_relic/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def metrics(application_names, initial = false)
def get(path, params = {})
response = Faraday.get("https://api.newrelic.com#{path}", params) do |request|
request.options.open_timeout = 2
request.headers['X-Api-Key'] = KEY
request.headers['X-Api-Key'] = API_KEY
end
raise "Newrelic request to #{path} failed #{response.status}" unless response.status == 200
JSON.parse(response.body)
Expand Down

0 comments on commit 45d2754

Please sign in to comment.