MCPcopy
hub / github.com/saltstack/salt / sleep

Method sleep

tests/pytests/unit/test_master.py:1090–1094  ·  view source on GitHub ↗
(self, secs)

Source from the content-addressed store, hash-verified

1088 return self._start_time + self._current_duration
1089
1090 def sleep(self, secs):
1091 self._calls += [secs]
1092 self._current_duration += secs
1093 if self._current_duration >= self._max_duration:
1094 raise RuntimeError("Time passes")
1095
1096 mocked_time = MockTime(60 * 4)
1097

Callers 15

upload_virustotalFunction · 0.45
upload_coverageFunction · 0.45
_call_parallel_targetMethod · 0.45
call_chunksMethod · 0.45
check_pauseMethod · 0.45
_check_requisitesMethod · 0.45
runMethod · 0.45
handle_key_rotateMethod · 0.45
read_or_generate_keyMethod · 0.45
startMethod · 0.45
_heartbeat_loopMethod · 0.45
_handle_signalsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected