Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 0e833e4

Browse files
committed
test(memory): Tidy.
1 parent 50bd724 commit 0e833e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/memory/MessageQuantity.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ describe('no memleaks when processing a high quantity of large messages', () =>
5454
})
5555

5656
beforeEach(() => {
57+
if (!process.env.DEBUG) { return }
5758
client.debug('disabling verbose client logging for long tests')
5859
Debug.disable()
5960
Debug.enable('MessageQuantityTest')
6061
})
6162

6263
afterEach(() => {
64+
if (!process.env.DEBUG) { return }
6365
Debug.enable(process.env.DEBUG)
6466
})
6567

@@ -236,7 +238,7 @@ describe('no memleaks when processing a high quantity of large messages', () =>
236238
timestamp: end,
237239
}
238240
},
239-
}, onMessage(MAX_MESSAGES))
241+
}, onMessage(MAX_MESSAGES, MAX_MEMORY_USAGE))
240242
await sub.onDone()
241243
validate(MAX_MEMORY_USAGE)
242244
}, 1000000)

0 commit comments

Comments
 (0)