Skip to content

Commit 2dc0a59

Browse files
authored
Removing Bolt V2 from handshake options (#707)
1 parent 31d3495 commit 2dc0a59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

driver/src/main/java/org/neo4j/driver/internal/async/connection/BoltProtocolUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class BoltProtocolUtil
4545
BoltProtocolV41.VERSION.toInt(),
4646
BoltProtocolV4.VERSION.toInt(),
4747
BoltProtocolV3.VERSION.toInt(),
48-
BoltProtocolV2.VERSION.toInt() ) ).asReadOnly();
48+
0 ) ).asReadOnly();
4949

5050
private static final String HANDSHAKE_STRING = createHandshakeString();
5151

driver/src/test/java/org/neo4j/driver/internal/async/connection/BoltProtocolUtilTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ void shouldReturnHandshakeBuf()
4545
assertByteBufContains(
4646
handshakeBuf(),
4747
BOLT_MAGIC_PREAMBLE, BoltProtocolV41.VERSION.toInt(), BoltProtocolV4.VERSION.toInt(),
48-
BoltProtocolV3.VERSION.toInt(), BoltProtocolV2.VERSION.toInt()
48+
BoltProtocolV3.VERSION.toInt(), 0
4949
);
5050
}
5151

5252
@Test
5353
void shouldReturnHandshakeString()
5454
{
55-
assertEquals( "[0x6060b017, 260, 4, 3, 2]", handshakeString() );
55+
assertEquals( "[0x6060b017, 260, 4, 3, 0]", handshakeString() );
5656
}
5757

5858
@Test

0 commit comments

Comments
 (0)