Skip to content

Commit d567e4a

Browse files
committed
test(rtc): dispose apm handle in ctypes array gc test to prevent sigabrt on unix runners
1 parent f1e0e00 commit d567e4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎livekit-rtc/tests/test_ffi_client.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
gc.collect()
2929
gc.set_debug(gc.DEBUG_SAVEALL)
3030
for _ in range(10):
31-
rtc.AudioProcessingModule()
31+
apm = rtc.AudioProcessingModule()
32+
apm._ffi_handle.dispose()
3233
gc.collect()
3334
print(sum(isinstance(o, type(ctypes.Array)) for o in gc.garbage))
3435
"""

0 commit comments

Comments
 (0)