Skip to content

Commit 6654251

Browse files
authored
Testkit: send server info with summary (#536)
1 parent 4fb29ef commit 6654251

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

testkitbackend/requests.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,14 @@ def ResultNext(backend, data):
289289

290290
def ResultConsume(backend, data):
291291
result = backend.results[data["resultId"]]
292-
result.consume()
293-
backend.send_response("Summary", {})
292+
summary = result.consume()
293+
backend.send_response("Summary", {
294+
"serverInfo": {
295+
"protocolVersion":
296+
".".join(map(str, summary.server.protocol_version)),
297+
"agent": summary.server.agent
298+
}
299+
})
294300

295301

296302
def RetryablePositive(backend, data):

testkitbackend/skipped_tests.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"stub.retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter":
3-
"Closes connection to router after ROUTE",
42
"stub.routing.Routing.test_should_use_resolver_during_rediscovery_when_existing_routers_fail":
53
"DNS resolver not implemented",
64
"stub.routing.RoutingV3.test_should_use_resolver_during_rediscovery_when_existing_routers_fail":

0 commit comments

Comments
 (0)