- Use
User.update_and_set_cache/1
instead ofRepo.update/2
(disscussion) - Use
PleromaJobQue
instead ofTask
to runuser_upgrade_task/1
- Remove
:timer.sleep(1000)
from the corresponding test (PleromaJobQue
executes jobs in tests synchronously)
User.update_and_set_cache/1
instead of Repo.update/2
(disscussion)PleromaJobQue
instead of Task
to run user_upgrade_task/1
:timer.sleep(1000)
from the corresponding test (PleromaJobQue
executes jobs in tests synchronously)