mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 22:43:30 +08:00
feat: add PERCENT_OF_TEST_FEATURES
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user