Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Console is already initialized" Exception in unit tests #120

Open
rossknudsen opened this issue May 24, 2022 · 2 comments
Open

"Console is already initialized" Exception in unit tests #120

rossknudsen opened this issue May 24, 2022 · 2 comments

Comments

@rossknudsen
Copy link

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
Copy link
Author

#92 addresses this

khellang added a commit to khellang/Hangfire.Console that referenced this issue Oct 17, 2023
ragnarstolsmark pushed a commit to IdentityStream/Hangfire.Console that referenced this issue Oct 18, 2023
@khellang
Copy link

khellang commented Nov 2, 2023

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants