google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
647 stars 179 forks source link

test_run_command_with_timeout_expired test is flaky on Windows #560

Closed winterfroststrom closed 5 years ago

winterfroststrom commented 5 years ago

___ UtilsTest.test_run_command_with_timeout_expired ___

self =

def test_run_command_with_timeout_expired(self):
    with self.assertRaises(psutil.TimeoutExpired):
      _ = utils.run_command(self.sleep_cmd(4000), timeout=0.01)

E AssertionError: TimeoutExpired not raised

tests\mobly\utils_test.py:61: AssertionError

winterfroststrom commented 5 years ago

Flakes don't seem to repo on my Windows machine

On the test machine, happened with both python 2 and 3: platform win32 -- Python 2.7.13, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 platform win32 -- Python 3.5.3, pytest-4.3.0, py-1.8.0, pluggy-0.9.0