0
huntethan89 created
1 Answer(s)
-
0
Hi @smartlayer
You should disable background jobs in your test cases since background jobs work asynchronously.
See: https://aspnetboilerplate.com/Pages/Documents/Background-Jobs-And-Workers#disabling-job-execution
https://github.com/aspnetzero/aspnet-zero-core/blob/fc16ab77828ed5aaebb34a5f923ad6628012fba9/aspnet-core/test/MyCompanyName.AbpZeroTemplate.Test.Base/AbpZeroTemplateTestBaseModule.cs#L44