diff options
Diffstat (limited to 'docker/netiquette/test/runner.mjs')
-rw-r--r-- | docker/netiquette/test/runner.mjs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/docker/netiquette/test/runner.mjs b/docker/netiquette/test/runner.mjs deleted file mode 100644 index b4da1de..0000000 --- a/docker/netiquette/test/runner.mjs +++ /dev/null @@ -1,28 +0,0 @@ -'use strict' - -import io from './io.mjs' -import iptables from './iptables.mjs' - -(async () => { - const res = await [ - ...io, - ...iptables - ].map(async f => { - try { - await f() - return 'passed' - } - catch(e) { - console.error(e) - return 'failed' - } - }).reduce(async (acc, r) => { - const accumulator = await acc - const result = await r - accumulator.total++ - accumulator[result]++ - return accumulator - }, {total: 0, passed: 0, failed: 0}) - - console.log(`Done. passed: ${res.passed}, failed: ${res.failed}, total: ${res.total}`) -})() |