Skip to content

Commit

Permalink
forgot to add the test_timeout_hang.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Dec 5, 2017
1 parent 98b79d3 commit f9b95d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/test/test_timeout_hang.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// run with `node test_timeout_hang`
// TODO: integrate with CI tests somehow...

const { timeout } = require ('../base/functions')

;(async function () {

await timeout (10000, Promise.resolve ('foo'))

console.log ('Look ma, no hangs!') // should terminate the process immediately..

}) ()

0 comments on commit f9b95d4

Please sign in to comment.