Hangfire.Console icon indicating copy to clipboard operation
Hangfire.Console copied to clipboard

"Console is already initialized" Exception in unit tests

Open rossknudsen opened this issue 2 years ago • 2 comments

I'm running some unit/integration tests in ASPNetCore and I'm getting an InvalidOperationException thrown with the message "Console is already initialized" when I run them. The error makes sense to me and can probably be mitigated by some restructuring of my unit tests to run in a particular way. However its not straightforward to fix.

So I was wondering if you would consider either updating the guard here or whether you would accept a PR to fix this?

rossknudsen avatar May 24 '22 03:05 rossknudsen

#92 addresses this

rossknudsen avatar Oct 04 '23 02:10 rossknudsen

There's now a forked version with some modernization and bugfixes now on NuGet.org. Hopefully this project will come back to life at some point and the fixes can be accepted upstream 😄

khellang avatar Nov 02 '23 21:11 khellang