Answer prose round 1: 0 🔴, 0 🟡 (0 misread); reword the clock comment
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -141,7 +141,7 @@ if os.path.basename(sys.argv[0]) == "loop-claude":
|
||||
record({"argv": sys.argv[1:]})
|
||||
pause = time.sleep
|
||||
time.sleep = lambda seconds: record({"sleep": seconds}) if seconds >= 1 else pause(seconds)
|
||||
# A test that sets LOOP_TEST_NOW fixes the loop's wall clock at that many seconds since the epoch.
|
||||
# LOOP_TEST_NOW pins the loop's wall clock to that many seconds since the epoch.
|
||||
if "LOOP_TEST_NOW" in os.environ:
|
||||
time.time = lambda: float(os.environ["LOOP_TEST_NOW"])
|
||||
# The host's own memory doesn't matter: every read finds all of it available.
|
||||
|
||||
Reference in New Issue
Block a user