Skip to content

Commit 45d2e86

Browse files
committed
fix mongo tests so they work with new mongo gem 2.5.3
(cherry picked from commit d63b347)
1 parent 749db15 commit 45d2e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/instrumentation/mongo_v2_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
traces = get_all_traces
143143
traces.count.must_equal 4
144144

145-
r.must_be_instance_of Mongo::Operation::Write::Insert::Result
145+
r.must_be_instance_of Mongo::Operation::Insert::Result
146146
if Mongo::VERSION < '2.2'
147147
r.successful?.must_equal true
148148
else
@@ -172,7 +172,7 @@
172172
traces.count.must_equal 4
173173

174174
if Mongo::VERSION < '2.1'
175-
r.must_be_instance_of Mongo::Operation::Write::Insert::Result
175+
r.must_be_instance_of Mongo::Operation::Insert::Result
176176
else
177177
r.must_be_instance_of Mongo::BulkWrite::Result
178178
r.inserted_count.must_equal 2

0 commit comments

Comments
 (0)