Tuesday, September 3, 2024
2 changes
1 change
Resolved issues and error corrections
This fix makes the Philippine SAWT and QAP report export order consistent every time. It prevents random automated test failures, helping keep releases stable without changing business functionality.
Original PR description
Folllow up to #67860: the use of a `set` in `export_sawt_qap` makes export ordering non-deterministic, which will randomly fail the checks in `TestSawtQapGeneration` (`test_sawt` and `test_qap`). Use a list to ensure the export is deterministically ordered. Example build failures: - https://runbot.odoo.com/runbot/build/67649933 - https://runbot.odoo.com/runbot/build/67650267
1 change
Resolved issues and error corrections
This update fixes failing tests in the subscription module that were caused by incorrect time handling during test execution. The fix ensures that time is properly frozen during testing, preventing intermittent test failures that occurred when tests were run at specific times. This improves the reliability of the subscription testing process.
Original PR description
Before this commit, some tests were failing because the time was not correctly frozen. The failing test could be seen when run like this: faketime '2024-08-31 02:01:00 UTC' ./odoo-bin -c ... runbot errors: 76518, 76519, 76520