Files
Superalgos/Client/node_modules/ccxt/js/test/test.timeout_hang.js
T
2020-11-20 20:28:04 +01:00

12 lines
299 B
JavaScript

// 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..
}) ()