Skip to content

Commit 2bfa634

Browse files
committed
Fix IT for 4x1+ versions. Setting serversideRouting was broken the connection on the ConnectionChannel IT
1 parent 45574cc commit 2bfa634

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/internal/bolt/bolt-protocol-v1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default class BoltProtocol {
6464
this._responseHandler = createResponseHandler(this)
6565
this._log = log
6666
this._onProtocolError = onProtocolError
67+
this._fatalError = null
6768
}
6869

6970
/**

test/internal/connection-channel.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ describe('#integration ChannelConnection', () => {
205205

206206
it('should have server version after connection initialization completed', async done => {
207207
connection = await createConnection(`bolt://${sharedNeo4j.hostname}`)
208-
209208
connection
210209
.connect('mydriver/0.0.0', basicAuthToken())
211210
.then(initializedConnection => {
@@ -214,6 +213,7 @@ describe('#integration ChannelConnection', () => {
214213
expect(serverVersion).toBeDefined()
215214
done()
216215
})
216+
.catch(done.fail.bind(done))
217217
})
218218

219219
it('should fail all new observers after failure to connect', async done => {
@@ -550,8 +550,7 @@ describe('#integration ChannelConnection', () => {
550550
ServerAddress.fromUrl(url),
551551
_config,
552552
new ConnectionErrorHandler(errorCode || SERVICE_UNAVAILABLE),
553-
Logger.noOp(),
554-
false
553+
Logger.noOp()
555554
)
556555
}
557556

0 commit comments

Comments
 (0)