You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected it will timeout the testcase if it runs over 1 sec
This is one of my test. I injected 10 secs sleep
def test_sample(self):
time.sleep(10)
with self.assertRaises(ValueError):
random.sample(self.seq, 20)
for element in random.sample(self.seq, 5):
self.assertTrue(element in self.seq)
And try to run nose2
#> nose2 -vvv -s ./example
test_shuffle (example.test_example.TestSequenceFunctions) ... ok
test_choice (example.test_example.TestSequenceFunctions) ... ok
test_sample (example.test_example.TestSequenceFunctions) ... ok
----------------------------------------------------------------------
Ran 3 tests in 10.023s
OK
It runs over 1 sec and didn't report error. Could team help to check parameter test-run-timeout still works? thanks!
The text was updated successfully, but these errors were encountered:
I think this is actually a documentation issue, not a bug or regression. The test-run-timeout doesn't cause errors when reached -- and as far as I can tell, never did. It actually represents the amount of time spent waiting for workers to send info back to the main test process -- and if reached, the main process will loop and continue waiting.
That said... this is wonky, IMO. Looking at this parameter and expecting it to cause a failure makes perfect sense to me. I need to think through what the best next steps are, but at least part of it is to better document the current behavior.
Hi team,
I upgraded my nose2 to 0.12.0. Here is my unittest.cfg
I expected it will timeout the testcase if it runs over 1 sec
This is one of my test. I injected 10 secs sleep
And try to run nose2
It runs over 1 sec and didn't report error. Could team help to check parameter
test-run-timeout
still works? thanks!The text was updated successfully, but these errors were encountered: