Expected behaviour of Oban.Pro.Testing.run_batch

Hi, I’m using Oban Pro 1.5.4 and elixir 1.18.3. Just wanted to confirm the expected behaviour of the test function run_batch.

I was following the doc’s guide on testing batches, using run_batch. It appears to be trying to drain jobs in all queues (without passing in any opts). I assumed run_batch would run the batch passed into it, otherwise there isn’t a difference between using this instead of drain_jobs? Unless this is a bug?

It was indeed a bug! It’s fixed on main, and will be released in the next patch release (v1.6.3, we don’t plan on backporting to the v1.5 branch).

Great, thanks for the response!