Flaky test ee/spec/features/admin/admin_audit_logs_spec.rb:22 # Admin::AuditLogs unlicensed returns 404

Job #1992895648 failed for a36e640b:

  1) Admin::AuditLogs unlicensed returns 404
     Got 1 failure and 1 other error:
     1.1) Failure/Error: expect(reqs.first.status_code).to eq(404)
            expected: 404
                 got: 304
            (compared using ==)
          # ./ee/spec/features/admin/admin_audit_logs_spec.rb:27:in `block (3 levels) in <top (required)>'
          # ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
          # ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
          # ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
     1.2) Failure/Error: raise JSConsoleError, message
          JSConsoleError:
            Unexpected browser console output:
            http://127.0.0.1:45655/admin/audit_logs - Failed to load resource: the server responded with a status of 404 (Not Found)
          # ./spec/support/capybara.rb:200:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:406:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:393:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
          # ./spec/spec_helper.rb:393:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
          # ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
Finished in 23 minutes 53 seconds (files took 1 minute 2.97 seconds to load)
420 examples, 1 failure, 4 pending
Failed examples:
rspec ./ee/spec/features/admin/admin_audit_logs_spec.rb:22 # Admin::AuditLogs unlicensed returns 404