Skip to content

Commit ef68b9c

Browse files
p-mongop
authored andcommitted
RUBY-2648 Handle connection events also, not just pool events (mongodb#2290)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 4bc9256 commit ef68b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/runners/unified/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def create_entities
144144
if ignore_events = spec.use('ignoreCommandMonitoringEvents')
145145
subscriber.ignore_commands(ignore_events)
146146
end
147-
when /^pool/
147+
when /\A(?:pool|connection)/
148148
subscriber = (@subscribers[client] ||= EventSubscriber.new)
149149
unless client.send(:monitoring).subscribers[Mongo::Monitoring::CONNECTION_POOL]&.include?(subscriber)
150150
client.subscribe(Mongo::Monitoring::CONNECTION_POOL, subscriber)

0 commit comments

Comments
 (0)