Skip to content

Commit 4e2ee87

Browse files
committed
test(rtc): reduce apm iteration count in ctypes array garbage test
Reduce the iteration count from 50 to 10 when checking for ctypes array leaks in gc.garbage. Setting DEBUG_SAVEALL prevents Python from collecting cyclic garbage and keeps APMs and their internal threads alive, which can exhaust system threads and cause SIGABRT on constrained CI runners like Ubuntu Python 3.10.
1 parent cfc66b0 commit 4e2ee87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎livekit-rtc/tests/test_ffi_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
gc.collect()
2929
gc.set_debug(gc.DEBUG_SAVEALL)
30-
for _ in range(50):
30+
for _ in range(10):
3131
rtc.AudioProcessingModule()
3232
gc.collect()
3333
print(sum(isinstance(o, type(ctypes.Array)) for o in gc.garbage))

0 commit comments

Comments
 (0)