MCPcopy
hub / github.com/aws/aws-cli / test_shutdown

Method test_shutdown

tests/unit/s3transfer/test_futures.py:572–577  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

570 self.assert_submit_would_block(other_task, task_tag)
571
572 def test_shutdown(self):
573 slow_task = self.get_sleep_task()
574 future = self.executor.submit(slow_task)
575 self.executor.shutdown()
576 # Ensure that the shutdown waits until the task is done
577 self.assertTrue(future.done())
578
579 @unittest.skipIf(
580 os.environ.get('USE_SERIAL_EXECUTOR'),

Callers

nothing calls this directly

Calls 4

get_sleep_taskMethod · 0.95
submitMethod · 0.45
shutdownMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected