Created
July 14, 2021 14:01
-
-
Save nachmore/3fba72e60e2245b8d0a72293b5bfc2cb to your computer and use it in GitHub Desktop.
Javascript function (in AWS Lambda form) that crashes ever other minute. Useful for testing Alarms.
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
exports.handler = async () => { | |
// causes a crash every other minute by returning an invalid value | |
return (new Date().getMinutes() % 2) ? () => {} : 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment