дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
test(profiler): wait for profiled loop work before stopping (#6588)
a_stopped_run_still_writes_its_profile sent SIGINT right after the fixture printed done, which could land before the loop ran, so the profile held only the initial fib(22) calls and the 'the loop ran' assertion failed. The fixture now prints looped after its first fib(18), and the test stops the run only after reading it, then checks for both completed passes. Fixes #6585 Co-authored-by: principalwater <[email protected]>
Цей коміт міститься в:
1 джерело
b15c56cdb0
коміт
1edfa9180b
2 files changed
+12
-5
No files matched your search
@@ -28,8 +28,11 @@ def main():
|
||||
primes(20000)
|
||||
checksum(str(i) for i in range(200000))
|
||||
print("done", flush=True)
|
||||
while "--loop" in sys.argv:
|
||||
if "--loop" in sys.argv:
|
||||
fib(18)
|
||||
print("looped", flush=True)
|
||||
while True:
|
||||
fib(18)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Заблокувати користувача