Skip to content

Commit a816c08

Browse files
authored
Fix stub tests which were checking for summary.version instead of summary.agent (#880)
1 parent 532f027 commit a816c08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/neo4j-driver/test/internal/node/routing.driver.boltkit.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ describe('#stub-routing routing driver with stub server', () => {
213213
// Then
214214
const readServerInfo = readResult.summary.server
215215
expect(readServerInfo.address).toBe('127.0.0.1:9005')
216-
expect(readServerInfo.version).toBe('Neo4j/8.8.8')
216+
expect(readServerInfo.agent).toBe('Neo4j/8.8.8')
217217

218218
const writeServerInfo = writeResult.summary.server
219219
expect(writeServerInfo.address).toBe('127.0.0.1:9007')
220-
expect(writeServerInfo.version).toBe('Neo4j/9.9.9')
220+
expect(writeServerInfo.agent).toBe('Neo4j/9.9.9')
221221

222222
await readSession.close()
223223
await writeSession.close()
@@ -269,12 +269,12 @@ describe('#stub-routing routing driver with stub server', () => {
269269
expect(readSummary.server.address).toBe(
270270
'127.0.0.1:9005'
271271
)
272-
expect(readSummary.server.version).toBe('Neo4j/8.8.8')
272+
expect(readSummary.server.agent).toBe('Neo4j/8.8.8')
273273

274274
expect(writeSummary.server.address).toBe(
275275
'127.0.0.1:9007'
276276
)
277-
expect(writeSummary.server.version).toBe('Neo4j/9.9.9')
277+
expect(writeSummary.server.agent).toBe('Neo4j/9.9.9')
278278

279279
readSession
280280
.close()

0 commit comments

Comments
 (0)