Sha256: 39b9ef2a564b12fd50a232f63139f3a8948dc8d5b7d55f3720ef80e6596b06d6
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'test_helper' require 'sidekiq' require 'harness/integration/sidekiq' class SidekiqIntegrationTest < IntegrationTest def middleware Sidekiq::Middleware::Server::HarnessInstrumentation.new end def tests_logs_job_performance_stats middleware.call("report", nil, nil) { } assert_gauge_logged "report.sidekiq" assert_counter_logged "reports.sidekiq" end def tests_logs_a_counter_of_all_jobs middleware.call("reports", nil, nil) { } assert_counter_logged "job.sidekiq" end def test_ignores_harness_jobs middleware.call("Harness::SidekiqQueue::SendCounter", nil, nil) { } assert_empty counters assert_empty gauges middleware.call("Harness::SidekiqQueue::SendGauge", nil, nil) { } assert_empty counters assert_empty gauges middleware.call(Harness::SidekiqQueue::SendCounter, nil, nil) { } assert_empty counters assert_empty gauges middleware.call(Harness::SidekiqQueue::SendGauge, nil, nil) { } assert_empty counters assert_empty gauges end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
harness-0.2.12 | test/integration/integrations/sidekiq_test.rb |
harness-0.2.11 | test/integration/integrations/sidekiq_test.rb |