Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/testkit-backend/src/request-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ export function ResultConsume (_, context, data, wire) {
const { resultId } = data
const result = context.getResult(resultId)

if (('recordIt' in result)) {
return result.recordIt.return().then(summary => {
if (summary.value) {
summary = summary.value
}
wire.writeResponse(responses.Summary({ summary }, { binder: context.binder }))
}).catch(e => wire.writeError(e))
}
return result.summary().then(summary => {
wire.writeResponse(responses.Summary({ summary }, { binder: context.binder }))
}).catch(e => wire.writeError(e))
Expand Down
1 change: 1 addition & 0 deletions packages/testkit-backend/src/skipped-tests/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const skippedTests = [
skip(
'ResultSummary.notifications defaults to empty array instead of return null/undefined',
ifEquals('stub.summary.test_summary.TestSummaryNotifications4x4.test_no_notifications'),
ifEquals('stub.summary.test_summary.TestSummaryNotifications4x4Discard.test_no_notifications'),
ifEquals('neo4j.test_summary.TestSummary.test_no_notification_info')
),
skip(
Expand Down