Concurrency bug in testing #33

Open
opened 2026-01-29 22:03:45 +00:00 by claunia · 1 comment
Owner

Originally created by @KOLANICH on GitHub (May 21, 2015).

When you run tests first time, some tests fail. Then if you rerun unpassed tests, they will pass. Seems like a bug in concurrency

Originally created by @KOLANICH on GitHub (May 21, 2015). When you run tests first time, some tests fail. Then if you rerun unpassed tests, they will pass. Seems like a bug in concurrency
Author
Owner

@adamhathcock commented on GitHub (May 22, 2015):

I had a static lock in the tests to fix that. Each TestInitialize would lock and TestCleanup would unlock.

Supposedly, you can get MSTest to not run concurrently as well but I was too lazy to look into it.

@adamhathcock commented on GitHub (May 22, 2015): I had a static lock in the tests to fix that. Each TestInitialize would lock and TestCleanup would unlock. Supposedly, you can get MSTest to not run concurrently as well but I was too lazy to look into it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#33