feat: add PERCENT_OF_TEST_FEATURES

This commit is contained in:
Wojtek Rybakiewicz
2023-11-03 18:26:38 +01:00
parent d3f8594bb9
commit dc2c8c91da

View File

@@ -315,7 +315,10 @@ export const prices = (router: Router) => {
*/
function shouldRunTestFeature() {
return Math.floor(Math.random() * 1000) < 200;
return (
Math.floor(Math.random() * 100) <
Number(process.env.PERCENT_OF_TEST_FEATURES)
);
}
router.get(