Skip to content

Commit 5c4e60b

Browse files
committed
TestKit: fake None notifications to be [] for newer protocol
1 parent 04a16af commit 5c4e60b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testkitbackend/totestkit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def serialize_notification(n: neo4j.SummaryNotification) -> dict:
6464

6565
def serialize_notifications() -> list[dict] | None:
6666
if summary_.notifications is None:
67-
return None
67+
gql_aware_protocol = summary_.server.protocol_version >= (5, 5)
68+
return [] if gql_aware_protocol else None
6869
return [
6970
serialize_notification(n) for n in summary_.summary_notifications
7071
]

0 commit comments

Comments
 (0)