Created
June 17, 2019 14:51
-
-
Save johnytiago/0e3591fca7aafea8d11186c2f995cf98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.env.SERVICE_VERSION === 'v-faulty') { | |
if (Math.random() <= 0.5) // Break in half the calls | |
return getLocalReviewsServiceUnavailable(res) | |
return getLocalReviewsSuccessful(res, productId) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment