Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions test/bolt-v3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ describe('#integration Bolt V3 API', () => {
let originalTimeout

beforeEach(async () => {
driver = neo4j.driver('bolt://localhost', sharedNeo4j.authToken)
driver = neo4j.driver(
`bolt://${sharedNeo4j.hostname}`,
sharedNeo4j.authToken
)
session = driver.session()
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000
Expand All @@ -52,7 +55,7 @@ describe('#integration Bolt V3 API', () => {
})

it('should set transaction metadata for auto-commit transaction', async () => {
if (!databaseSupportsBoltV3()) {
if (!databaseSupportsBoltV3() || !databaseSupportsListTransaction()) {
return
}

Expand Down Expand Up @@ -144,7 +147,7 @@ describe('#integration Bolt V3 API', () => {
))

it('should set transaction metadata for explicit transactions', async () => {
if (!databaseSupportsBoltV3()) {
if (!databaseSupportsBoltV3() || !databaseSupportsListTransaction()) {
return
}

Expand Down Expand Up @@ -395,7 +398,7 @@ describe('#integration Bolt V3 API', () => {
})

async function testTransactionMetadataWithTransactionFunctions (read) {
if (!databaseSupportsBoltV3()) {
if (!databaseSupportsBoltV3() || !databaseSupportsListTransaction()) {
return
}

Expand Down Expand Up @@ -498,4 +501,8 @@ describe('#integration Bolt V3 API', () => {
function databaseSupportsBoltV3 () {
return protocolVersion >= 3
}

function databaseSupportsListTransaction () {
return sharedNeo4j.edition === 'enterprise'
}
})
5 changes: 4 additions & 1 deletion test/bolt-v4x0.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ describe('#integration Bolt V4.0 API', () => {
let originalTimeout

beforeEach(async () => {
driver = neo4j.driver('bolt://localhost', sharedNeo4j.authToken)
driver = neo4j.driver(
`bolt://${sharedNeo4j.hostname}`,
sharedNeo4j.authToken
)
session = driver.session()
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000
Expand Down
5 changes: 4 additions & 1 deletion test/browser/karma-chrome.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ module.exports = function (config) {
autoWatch: false,
singleRun: true,
concurrency: 1,
browserNoActivityTimeout: 30 * 60 * 1000
browserNoActivityTimeout: 30 * 60 * 1000,
client: {
env: process.env
}
})
}
3 changes: 3 additions & 0 deletions test/browser/karma-firefox.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ module.exports = function (config) {
'network.websocket.max-connections': 256 // as in Chrome
}
}
},
client: {
env: process.env
}
})
}
Loading