Skip to content

Instantly share code, notes, and snippets.

@brianc
Created October 29, 2013 13:43
Show Gist options
  • Save brianc/7214887 to your computer and use it in GitHub Desktop.
Save brianc/7214887 to your computer and use it in GitHub Desktop.
describe('something that should not exit', function() {
it('sets a really long timeout', function() {
setTimeout(function() { console.log('Im still running') }, 1000000)
});
after(function(done) {
setTimeout(done, 1000);
});
});
@brianc
Copy link
Author

brianc commented Oct 29, 2013

This will exit in 1 second and you will never see the 'Im still running' printed to the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment