Skip to content

Commit a1c19c1

Browse files
committed
Update index.test.js
1 parent 22b21d8 commit a1c19c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ describe('#unit Bolt', () => {
4848
const writtenBuffer = channel.written[0]
4949

5050
const boltMagicPreamble = '60 60 b0 17'
51+
const handshakev2 = '00 00 01 ff'
5152
const protocolVersion5x7to5x0 = '00 07 07 05'
52-
const protocolVersion4x4to4x2 = '00 02 04 04'
53-
const protocolVersion4x1 = '00 00 01 04'
53+
const protocolVersion4x4to4x0 = '00 04 04 04'
5454
const protocolVersion3 = '00 00 00 03'
5555

5656
expect(writtenBuffer.toHex()).toEqual(
57-
`${boltMagicPreamble} ${protocolVersion5x7to5x0} ${protocolVersion4x4to4x2} ${protocolVersion4x1} ${protocolVersion3}`
57+
`${boltMagicPreamble} ${handshakev2} ${protocolVersion5x7to5x0} ${protocolVersion4x4to4x0} ${protocolVersion3}`
5858
)
5959
})
6060

0 commit comments

Comments
 (0)