Skip to content

Commit

Permalink
apply static analysis proposed fixes
Browse files Browse the repository at this point in the history
Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
  • Loading branch information
1 parent fd7ae93 commit 1f01634
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/datadog/core/telemetry/metrics_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ def first_distribution_values
expect(event).to be_a(Datadog::Core::Telemetry::Event::GenerateMetrics)
payload = event.payload

expect(payload[:namespace]).to eq(namespace)
expect(payload[:series]).to have(2).items
expect(payload.fetch(:namespace)).to eq(namespace)
expect(payload.fetch(:series)).to have(2).items

tags = payload[:series].map { |s| s[:tags] }.sort
expect(tags).to eq([['tag1:val1', 'tag2:val2'], ['tag1:val1', 'tag2:val3']])
Expand All @@ -274,8 +274,8 @@ def first_distribution_values
expect(event).to be_a(Datadog::Core::Telemetry::Event::Distributions)
payload = event.payload

expect(payload[:namespace]).to eq(namespace)
expect(payload[:series]).to have(2).items
expect(payload.fetch(:namespace)).to eq(namespace)
expect(payload.fetch(:series)).to have(2).items

tags = payload[:series].map { |s| s[:tags] }.sort
expect(tags).to eq([['tag1:val1', 'tag2:val2'], ['tag1:val1', 'tag2:val3']])
Expand Down

0 comments on commit 1f01634

Please sign in to comment.