不要怂,就是干,撸起袖子干!

Commit 740b4286 by Simon Schick Committed by GitHub

test: show additional information for queries that did not complete (#12145)

1 parent a1ec8a18
Showing with 3 additions and 1 deletions
......@@ -21,7 +21,9 @@ afterEach(function() {
if (runningQueries.size === 0) {
return;
}
throw new Error(`Expected 0 running queries. ${runningQueries.size} queries still running in ${this.currentTest.fullTitle()}`);
let msg = `Expected 0 running queries. ${runningQueries.size} queries still running in ${this.currentTest.fullTitle()}\n`;
msg += `Queries:\n${[...runningQueries].map(query => `${query.uuid}: ${query.sql}`).join('\n')}`;
throw new Error(msg);
});
module.exports = Support;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!