Remove noCancel from captureProcessOutput call

This commit is contained in:
Eric 2025-03-19 15:15:18 +11:00
parent c1b36e7f21
commit 389ce830d9
No known key found for this signature in database

View File

@ -558,7 +558,7 @@ proc start(test: IntegrationTest) {.async: (raises: []).} =
test.status = IntegrationTestStatus.Error
return
var futCaptureOutput: Future[(seq[string], seq[string])].Raising([])
var futCaptureOutput: Future[(seq[string], seq[string])].Raising([CancelledError])
defer:
# called at the end of successful runs but also when `start` is cancelled
# (from `untilTimeout`) due to a timeout. This defer runs first before
@ -568,7 +568,7 @@ proc start(test: IntegrationTest) {.async: (raises: []).} =
var output = TestOutput.new()
test.output = success(output)
futCaptureOutput = noCancel test.captureProcessOutput()
futCaptureOutput = test.captureProcessOutput()
output.exitCode =
try: