Skip to content

Commit 630952a

Browse files
committed
remove 'should write protocol handshake' because it's already tested in testkit
1 parent 2bfa634 commit 630952a

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/internal/connection-channel.test.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,27 +113,6 @@ describe('#integration ChannelConnection', () => {
113113
})
114114
})
115115

116-
xit('should write protocol handshake', () => {
117-
const channel = new DummyChannel()
118-
connection = new ChannelConnection(
119-
channel,
120-
new ConnectionErrorHandler(SERVICE_UNAVAILABLE),
121-
ServerAddress.fromUrl('localhost:7687'),
122-
Logger.noOp()
123-
)
124-
125-
connection._negotiateProtocol()
126-
127-
const boltMagicPreamble = '60 60 b0 17'
128-
const protocolVersion4x3 = '00 01 03 04'
129-
const protocolVersion4x1 = '00 00 01 04'
130-
const protocolVersion4x0 = '00 00 00 04'
131-
const protocolVersion3 = '00 00 00 03'
132-
expect(channel.toHex()).toBe(
133-
`${boltMagicPreamble} ${protocolVersion4x3} ${protocolVersion4x1} ${protocolVersion4x0} ${protocolVersion3}`
134-
)
135-
})
136-
137116
it('should provide error message when connecting to http-port', async done => {
138117
await createConnection(`bolt://${sharedNeo4j.hostname}:7474`, {
139118
encrypted: false

0 commit comments

Comments
 (0)