Skip to content

Commit

Permalink
Simplify telemetry request time check in CI (Shopify#977)
Browse files Browse the repository at this point in the history
Simplify request time check

Co-authored-by: Andy Waite <[email protected]>
  • Loading branch information
andyw8 and andyw8 authored Sep 6, 2023
1 parent 5f97491 commit 4888caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def assert_telemetry(request, expected_uri = @uri.path.sub(Dir.home, "~"))
assert_equal(expected_uri, telemetry_response.dig(:params, :uri))
assert_equal(RubyLsp::VERSION, telemetry_response.dig(:params, :lspVersion))
assert_equal(request, telemetry_response.dig(:params, :request))
assert_in_delta(0.5, telemetry_response.dig(:params, :requestTime), 2)
assert_instance_of(Float, telemetry_response.dig(:params, :requestTime))
end

def make_request(request, params = nil)
Expand Down

0 comments on commit 4888caa

Please sign in to comment.