From da92d53667754257efc913e554c00dcfc4d85b2a Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 15 Apr 2021 17:13:27 -0400 Subject: [PATCH] update --- test/README.md | 2 +- test/test-main.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/README.md b/test/README.md index 3baf1784..93de9897 100644 --- a/test/README.md +++ b/test/README.md @@ -23,7 +23,7 @@ - Image filters are disabled due to lack of Canvas and WeBGL access - Only supported input is Tensor due to missing image decoders - Warmup returns null and is marked as failed - Missing native Image implementation in NodeJS + Missing image decode in `tfjs-core` - Fails on object detection: `Kernel 'SparseToDense' not registered for backend 'wasm'` diff --git a/test/test-main.js b/test/test-main.js index f7cd71d5..4a063c43 100644 --- a/test/test-main.js +++ b/test/test-main.js @@ -5,8 +5,9 @@ const fetch = require('node-fetch').default; let config; const log = (status, ...data) => { - if (typeof process.send !== 'undefined') process.send([status, data]); - else process.stdout.write(JSON.stringify(data)); + if (typeof process.send !== 'undefined') process.send([status, data]); // send to parent process over ipc + // eslint-disable-next-line no-console + else console.log(status, ...data); // write to console if no parent process }; async function testHTTP() {