Skip to content

Commit

Permalink
Fix failing mongo spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gregawoods committed Dec 30, 2024
1 parent ee54b78 commit e0c24a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/elastic_apm/spies/mongo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module ElasticAPM
expect(db.instance).to eq 'elastic-apm-test'
expect(db.type).to eq 'mongodb'
expect(db.statement).to eq('{"listCollections"=>1}')
.or eq("{\"listCollections\" => 1}")
expect(db.user).to be nil

destination = span.context.destination
Expand Down Expand Up @@ -102,6 +103,7 @@ module ElasticAPM
expect(db.instance).to eq 'elastic-apm-test'
expect(db.type).to eq 'mongodb'
expect(db.statement).to eq('{"find"=>"testing", "filter"=>{"a"=>"bc"}}')
.or eq("{\"find\" => \"testing\", \"filter\" => {\"a\" => \"bc\"}}")
expect(db.user).to be nil
end
end
Expand Down

0 comments on commit e0c24a9

Please sign in to comment.