Skip to content

Commit 00a45a0

Browse files
committed
try to fix crash in tests
1 parent 30d3f82 commit 00a45a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/BedrockServiceTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ struct BedrockServiceTests {
2323
let bedrock: BedrockService
2424

2525
init() async throws {
26+
// this is a workaround for issue
27+
// https://github.com/awslabs/aws-sdk-swift/issues/1984
28+
CommonRuntimeKit.initialize()
29+
2630
self.bedrock = try await BedrockService(
2731
bedrockClient: MockBedrockClient(),
2832
bedrockRuntimeClient: MockBedrockRuntimeClient()

0 commit comments

Comments
 (0)