Hey Everyone here!
I am writing test cases and enqueued an Oban job in it. The job is being enqueued but can’t perform its function.
Can anyone here help me out regarding this. ?
Is there any different way to perform its functionality. ?
Thanks.
Hey Everyone here!
I am writing test cases and enqueued an Oban job in it. The job is being enqueued but can’t perform its function.
Can anyone here help me out regarding this. ?
Is there any different way to perform its functionality. ?
Thanks.
Oban jobs are usually not ran automatically in tests. You should use Oban’s test helpers to run the job an make assertions. Please see the Oban’s testing guide.
Okay got it.
Thanks @stefanchrobot