From d5c230fd558b89eccf3323f7b396a7da278f7ae5 Mon Sep 17 00:00:00 2001 From: Bob Evans Date: Fri, 6 Sep 2024 16:29:14 -0400 Subject: [PATCH] chore: PR feedback --- test/unit/util/application-logging.test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/unit/util/application-logging.test.js b/test/unit/util/application-logging.test.js index 1368216ec6..2cdc84ad6a 100644 --- a/test/unit/util/application-logging.test.js +++ b/test/unit/util/application-logging.test.js @@ -54,14 +54,13 @@ test('truncate', async (t) => { { value: [], type: 'array' }, { value: function () {}, type: 'function' } ] - await Promise.all( - negativeTests.map(async ({ value, type }) => { - await t.test(`should not truncate ${type}`, () => { - const newValue = loggingUtils.truncate(value) - assert.deepEqual(value, newValue) - }) + for (const negativeTest of negativeTests) { + const { value, type } = negativeTest + await t.test(`should not truncate ${type}`, () => { + const newValue = loggingUtils.truncate(value) + assert.deepEqual(value, newValue) }) - ) + } }) test('Application Logging Config Tests', async (t) => { @@ -129,6 +128,7 @@ test('Application Logging Config Tests', async (t) => { test('incrementLoggingLinesMetrics', async (t) => { t.beforeEach((ctx) => { + console.log('before test') ctx.nr = {} const callCountStub = { incrementCallCount: sinon.stub() } ctx.nr.metricsStub = {