A platform for community discussion. Free, open, simple.
DEV: Better output when assertion fails in smoke test.
Guo Xiang Tanc27863aad215
diff --git a/test/smoke_test.js b/test/smoke_test.jsindex 095d2b95ab2..eb7beccedcf 100644--- a/test/smoke_test.js+++ b/test/smoke_test.js@@ -231,7 +231,14 @@ const path = require('path');return promise;}, output => {- return output.match("I can even write a reply");+ const expected = "I can even write a reply";+ const matched = output.match(expected);++ if (!matched) {+ console.log(`Expected '${output}' to match '${expected}'`);+ }++ return matched;});await exec("submit the topic", () => {