aloof-angle-91616
11/29/2018, 6:45 AM_ TestProcessMetadataManager.test_deadline_until _
self = <pants_test.pantsd.test_process_manager.TestProcessMetadataManager testMethod=test_deadline_until>
def test_deadline_until(self):
with self.assertRaises(ProcessMetadataManager.Timeout):
with self.captured_logging(<http://logging.INFO|logging.INFO>) as captured:
self.pmm._deadline_until(lambda: False, 'the impossible', timeout=.5, info_interval=.1)
self.assertTrue(4 <= len(captured.infos()) <= 6,
> 'Expected between 4 and 6 infos, got: {}'.format(captured.infos()))
E AssertionError: False is not true : Expected between 4 and 6 infos, got: ['pants.pantsd.process_manager: waiting for the impossible...', 'pants.pantsd.process_manager: waiting for the impossible...', 'pants.pantsd.process_manager: waiting for the impossible...']