Friday, October 17, 2025
1 change · 19.0
Code cleanup and technical improvements
This update improves the internal test coverage for audio and video calls in Discuss by simulating network behavior without needing real network access. It helps ensure call-related features are tested more safely and that media streams are properly cleaned up, reducing the risk of issues such as lingering camera or microphone activity.
Original PR description
- Add a Mock for the network layer of calls (`rtcService.network`), which allows for the testing of features that depend on network events, without using online tests (which would require local network access in the test environment). - Improve the stream testing API, so tests for stream cleanup are also added, which guards against memory leaks that could be caused if streams aren't properly closed and the associated lingering OS/browser level media indicators (eg: webcam activity light). - Add a test for https://github.com/odoo/odoo/pull/230287 now that it's possible to test such features.