Removing Current
This commit is contained in:
1 parent
d6c5e91290
commit
a4ed878fcd
4379 files changed
No files matched your search
+12
@@ -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..
|
||||
|
||||
}) ()
|
||||
Reference in new issue
Block a user