We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd99ab commit f2b90f7Copy full SHA for f2b90f7
testkitbackend/totestkit.py
@@ -69,9 +69,17 @@ def serialize_notifications():
69
return [serialize_notification(n)
70
for n in summary_.summary_notifications]
71
72
+ def format_address(address: neo4j.Address):
73
+ if len(address) == 2:
74
+ return f"{address.host}:{address.port}"
75
+ if len(address) == 4:
76
+ return f"[{address.host}]:{address.port}"
77
+ else:
78
+ raise ValueError(f"Unexpected address format: {address}")
79
+
80
return {
81
"serverInfo": {
- "address": ":".join(map(str, summary_.server.address)),
82
+ "address": format_address(summary_.server.address),
83
"agent": summary_.server.agent,
84
"protocolVersion":
85
".".join(map(str, summary_.server.protocol_version)),
0 commit comments