Skip to content

Integration tests not respecting queue adapter #2311

@gaffneyc

Description

@gaffneyc

What Ruby, Rails and RSpec versions are you using?

Ruby version: 2.6.6
Rails version: 6.0.2.2
RSpec version: 4.0.0

Observed behaviour

Integration tests that use ActiveJob are ignoring the configured queue adapter and instead use the built in test queue. In our case we're using Sidekiq and tests are failing when doing a delayed send with ActionMailer because emails are being queued up internally even though we've configured Sidekiq to run them inline.

This is similar to #2232 / #2242 but for integration tests. Related to rails/rails#37270

Expected behaviour

Integration tests should use the configured queue adapter.

Can you provide an example app?

https://github.com/gaffneyc/rails_email_deliveries

Instructions for running the test are in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions