148 reputation
6
bio website geekswithblogs.net/smitcham
location Huntsville, AL
age 42
visits member for 4 years, 7 months
seen Apr 29 at 14:03

Long time developer looking to be useful in the community.


Apr
19
awarded  Student
Apr
17
comment Verifying absence of an event in multithreaded unit test
I believe that there a pauses in the test where the system must wait for background tasks to happen before continuing with the test. It isn't just piecemeal verification on the test side. As I said, not really a unit test. I'll focus on trying to break up what the test is trying to verify into different unit tests that are isolated and deterministic
Apr
17
awarded  Scholar
Apr
17
accepted Verifying absence of an event in multithreaded unit test
Apr
17
comment Verifying absence of an event in multithreaded unit test
Thanks for your input. That was my thought, I was reaching out to see if there was anything I'd missed. The ultimate goal is to break this test up into actual unit tests and move this to a different integration suite.
Apr
17
comment Verifying absence of an event in multithreaded unit test
Right now the test is set to 250ms, but we have some slower machines that are failing. Not a big deal, but occasionally the shared CI server can run slow and the goal is to ensure that it will always pass.
Apr
17
comment Verifying absence of an event in multithreaded unit test
That is essentially what the code does right now. The issue is that the code is set up so that 'at some unknown time in the near future' the variable might be set, so we wait. There's never a guarantee that the variable won't be set just after the check. This question was a long shot.
Apr
17
comment Verifying absence of an event in multithreaded unit test
Unfortunately it is a legacy code base and we are long way from getting DI rolled in. I'm working on incremental improvements as I dig my way through a maze of singletons.
Apr
17
asked Verifying absence of an event in multithreaded unit test
Jan
27
awarded  Informed
Dec
18
answered Ideal data structure/techniques for storing generic scheduler data in C#
Dec
18
awarded  Supporter
May
28
answered Advice Needed: Developers blocked by waiting on code to merge from another branch using GitFlow
Apr
5
answered Is it more advantageous to write a program to test your code (ie a client) or just use the main portion of your program?
Oct
25
awarded  Teacher
Oct
25
answered Is it right to appraise Scrum members according to number of successful user stories completed?
Oct
25
awarded  Autobiographer