Skip to content

Commit 1b2132b

Browse files
committed
Investigating flaky test
1 parent 750ebbb commit 1b2132b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/testkit-backend/src/request-handlers.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function NewDriver (context, data, wire) {
5151
userAgent,
5252
resolver,
5353
useBigInt: true,
54-
logging: neo4j.logging.console(process.env.LOG_LEVEL)
54+
logging: neo4j.logging.console(process.env.LOG_LEVEL || context.logLevel)
5555
}
5656
if ('encrypted' in data) {
5757
config.encrypted = data.encrypted ? 'ENCRYPTION_ON' : 'ENCRYPTION_OFF'
@@ -335,6 +335,11 @@ export function SessionWriteTransaction (context, data, wire) {
335335
}
336336

337337
export function StartTest (context, { testName }, wire) {
338+
if (testName.endswith('.test_disconnect_session_on_tx_pull_after_record')) {
339+
context.logLevel = 'debug'
340+
} else {
341+
context.logLevel = null
342+
}
338343
const shouldRunTest = context.getShouldRunTestFunction()
339344
shouldRunTest(testName, {
340345
onRun: () => wire.writeResponse(responses.RunTest()),

0 commit comments

Comments
 (0)