summaryrefslogtreecommitdiff
path: root/test/test-cache-map.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-07 11:34:14 -0500
committerGitHub <noreply@github.com>2020-11-07 11:34:14 -0500
commit7fa478295496d16bfc99dd80858544900c7b0a4c (patch)
treeeaf94141835cdc7d27e58c6a0d1977c9361b1525 /test/test-cache-map.js
parent0b003ef2c3c9029a2d92dfc23d760de895e0d7a4 (diff)
Return an error code when promise main() functions fail (#1002)
Diffstat (limited to 'test/test-cache-map.js')
-rw-r--r--test/test-cache-map.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-cache-map.js b/test/test-cache-map.js
index 12367a90..a0598c18 100644
--- a/test/test-cache-map.js
+++ b/test/test-cache-map.js
@@ -16,6 +16,7 @@
*/
const assert = require('assert');
+const {testMain} = require('../dev/util');
const {VM} = require('../dev/vm');
const vm = new VM({console});
@@ -218,4 +219,4 @@ function main() {
}
-if (require.main === module) { main(); }
+if (require.main === module) { testMain(main); }