Skip to content

Commit 9abd180

Browse files
committed
I believe I forgot a .finish call which is needed for proper cleanup and was causing failed tests
1 parent 6759abd commit 9abd180

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ struct LambdaRuntimeClientTests {
386386
let (_, writer) = try await runtimeClient.nextInvocation()
387387
let error = MyCustomError(message: "Something went wrong")
388388
try await writer.reportError(error)
389+
try await writer.finish()
389390
}
390391
}
391392

@@ -401,6 +402,7 @@ struct LambdaRuntimeClientTests {
401402
let (_, writer) = try await runtimeClient.nextInvocation()
402403
let error = MyEnumError.anotherCase("test")
403404
try await writer.reportError(error)
405+
try await writer.finish()
404406
}
405407
}
406408
}

0 commit comments

Comments
 (0)