Skip to content

Move logging to separate class #58558

Move logging to separate class

Move logging to separate class #58558

GitHub Actions / Test Results failed Mar 26, 2024 in 0s

1 fail, 50 skipped, 19 087 pass in 39m 46s

    13 files  ±0      13 suites  ±0   39m 46s ⏱️ +36s
19 138 tests  - 4  19 087 ✅  - 5  50 💤 ±0  1 ❌ +1 
19 406 runs   - 4  19 355 ✅  - 5  50 💤 ±0  1 ❌ +1 

Results for commit 7409019. ± Comparison against earlier commit 6bde7f4.

Annotations

Check warning on line 0 in ./spec/controllers/v0/pension_claims_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Results

V0::PensionClaimsController#create logs a success (spec.controllers.v0.pension_claims_controller_spec) failed

Test Results/rspec10.xml [took 0s]
Raw output
(#<SemanticLogger::Logger:0x00007f4584184158 @filter=nil, @name="Rails", @level_index=nil, @level=nil>).info("Begin 21P-527EZ Submission", #<a hash including (guid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>, user_uuid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>)>)     expected: 1 time with arguments: ("Begin 21P-527EZ Submission", #<a hash including (guid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>, user_uuid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>)>)     received: 0 times
\e[1mFailure/Error: \e[0mexpect(Rails.logger).to receive(:info).with('Begin 21P-527EZ Submission', hash_including(:guid, :user_uuid))

  (#<SemanticLogger::Logger:0x00007f4584184158 @filter=nil, @name="Rails", @level_index=nil, @level=nil>).info("Begin 21P-527EZ Submission", #<a hash including (guid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>, user_uuid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>)>)
      expected: 1 time with arguments: ("Begin 21P-527EZ Submission", #<a hash including (guid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>, user_uuid: #<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007f458b274660>)>)
      received: 0 times
./spec/controllers/v0/pension_claims_controller_spec.rb:19:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.23.0/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'