Managing Quartz in WebApplicationFactory tests #2277
-
is there a recipe for managing quartz in a "non-run" state? I'm writing tests with When I was looking at dotTrace I was seeing a good amount of time (~12sec?) being spent in Tried also tried services.AddQuartz(q =>
{
var maxConcurrency = 0;
q.MisfireThreshold = TimeSpan.FromSeconds(60);
q.UseDefaultThreadPool(options => { options.MaxConcurrency = maxConcurrency; });
q.SetProperty(StdSchedulerFactory.PropertySchedulerMaxBatchSize, maxConcurrency.ToString());
}); any ideas on how to best speed up running these kinds of tests? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could try to remove the hosted service in |
Beta Was this translation helpful? Give feedback.
You could try to remove the hosted service in
WebApplicationFactory
context: https://stackoverflow.com/questions/56341035/how-to-disable-services-with-webapplicationfactory