Skip to content

Commit ac632ed

Browse files
committed
ACleaning up
1 parent 5a55d07 commit ac632ed

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed

packages/bolt-connection/test/rediscovery/rediscovery.test.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -136,48 +136,6 @@ describe('#unit Rediscovery', () => {
136136
}
137137
})
138138

139-
xit('should reject with PROCEDURE_NOT_FOUND_CODE when it happens ', async () => {
140-
const routerAddress = ServerAddress.fromUrl('bolt://localhost:1235')
141-
const expectedError = newError(
142-
`Server at ${routerAddress.asHostPort()} can't perform routing. Make sure you are connecting to a causal cluster`,
143-
SERVICE_UNAVAILABLE
144-
)
145-
try {
146-
const initialAddress = '127.0.0.1'
147-
const routingContext = { context: '1234 ' }
148-
149-
const connection = new FakeConnection().withRequestRoutingInformationMock(
150-
fakeOnError(newError('1de', PROCEDURE_NOT_FOUND_CODE))
151-
)
152-
await lookupRoutingTableOnRouter({
153-
initialAddress,
154-
routingContext,
155-
connection,
156-
routerAddress
157-
})
158-
159-
fail('it should fail')
160-
} catch (error) {
161-
expect(error).toEqual(expectedError)
162-
}
163-
})
164-
165-
xit('should return null when it happens an unexpected error ocorrus', async () => {
166-
const initialAddress = '127.0.0.1'
167-
const routingContext = { context: '1234 ' }
168-
169-
const connection = new FakeConnection().withRequestRoutingInformationMock(
170-
fakeOnError(newError('1de', 'abc'))
171-
)
172-
const routingTable = await lookupRoutingTableOnRouter({
173-
initialAddress,
174-
routingContext,
175-
connection
176-
})
177-
178-
expect(routingTable).toEqual(null)
179-
})
180-
181139
it('should throw PROTOCOL_ERROR if the routing table is invalid', async () => {
182140
runWithClockAt(Date.now(), async () => {
183141
try {

packages/neo4j-driver/test/driver.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ describe('#integration driver', () => {
378378
expect(error.code).toEqual(neo4j.error.SERVICE_UNAVAILABLE)
379379
expect(error.message).toEqual(
380380
`Server at ${sharedNeo4j.hostname}:7687 can't perform routing. ` +
381-
'Make sure you are connecting to a causal cluster.'
381+
'Make sure you are connecting to a causal cluster'
382382
)
383383
} finally {
384384
await session.close()

0 commit comments

Comments
 (0)