Closed msche closed 3 years ago
Thank you for finding and fixing this! I have incorporated the change into the code in b11b5dc1d949c65756afe90382f117028b607750.
It appears that when I updated this test a few months ago I was a bit too hasty and made a copy-paste error and a logical error. I'm surprised the test passed at all given these errors.
I have forked the JSoar project for some private experimenting and noticed that the build took a long time (5 minutes). So I started looking into the tests and noticed that
ThreadedAgentTest.testMultipleAgents()
took a long time (> 2 minutes). I was wondering why so investigated the method a bit and noticed the following. At a certain stage the tests verifies whether the agents are running (see below snippet)To me it seems the
if
check is wrong. I would have expected that it would check whether theThreadedAgent
is running and NOT whether it was stopped. So I changed that part of the code into:I executed the tests after this modification and they where successful and a lot faster.
Is this actually a bug or did I misunderstood the test.