Sha256: faeaf0beb34076e5512569c2ea59bbebb2329572a8c6a58da9655573f37592f9

Contents?: true

Size: 368 Bytes

Versions: 43

Compression:

Stored size: 368 Bytes

Contents

module Mongo
  class Monitoring
    # #subscribers writes to the subscribers even when reading them,
    # confusing the tests.
    # This method returns only events with populated subscribers.
    def present_subscribers
      subs = {}
      subscribers.each do |k, v|
        unless v.empty?
          subs[k] = v
        end
      end
      subs
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
mongo-2.13.3 spec/support/monitoring_ext.rb
mongo-2.14.1 spec/support/monitoring_ext.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongo-2.8.0/spec/support/monitoring_ext.rb
mongo-2.15.0.alpha spec/support/monitoring_ext.rb
mongo-2.13.2 spec/support/monitoring_ext.rb
mongo-2.14.0 spec/support/monitoring_ext.rb
mongo-2.14.0.rc1 spec/support/monitoring_ext.rb
mongo-2.13.1 spec/support/monitoring_ext.rb
mongo-2.12.4 spec/support/monitoring_ext.rb
mongo-2.11.6 spec/support/monitoring_ext.rb
mongo-2.13.0 spec/support/monitoring_ext.rb
mongo-2.12.3 spec/support/monitoring_ext.rb
mongo-2.13.0.rc1 spec/support/monitoring_ext.rb
mongo-2.12.2 spec/support/monitoring_ext.rb
mongo-2.10.5 spec/support/monitoring_ext.rb
mongo-2.11.5 spec/support/monitoring_ext.rb
mongo-2.13.0.beta1 spec/support/monitoring_ext.rb
mongo-2.12.1 spec/support/monitoring_ext.rb
mongo-2.12.0.rc0 spec/support/monitoring_ext.rb
mongo-2.11.4 spec/support/monitoring_ext.rb