From 265ae3a2a9c97343cfb91164a6013ee053af5cdd Mon Sep 17 00:00:00 2001 From: owenpearson Date: Mon, 25 Mar 2024 13:38:00 +0000 Subject: [PATCH] test: flush logs after each test must have accidentally lost this hook during a rebase, whoops --- test/common/modules/shared_helper.js | 1 + test/support/root_hooks.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/common/modules/shared_helper.js b/test/common/modules/shared_helper.js index 0cfd8ce1d..986ed85f7 100644 --- a/test/common/modules/shared_helper.js +++ b/test/common/modules/shared_helper.js @@ -303,5 +303,6 @@ define([ testMessageEquality: testMessageEquality, closeActiveClients, logTestResults, + flushTestLogs: globals.flushLogs, }); }); diff --git a/test/support/root_hooks.js b/test/support/root_hooks.js index 8b3d59e70..aab15e140 100644 --- a/test/support/root_hooks.js +++ b/test/support/root_hooks.js @@ -12,5 +12,6 @@ define(['shared_helper'], function (helper) { afterEach(helper.closeActiveClients); afterEach(helper.logTestResults); + afterEach(helper.flushTestLogs); beforeEach(helper.clearTransportPreference); });