@@ -17,6 +17,7 @@ import SmithyTestUtil
1717import enum Smithy. LogAgentLevel
1818import protocol Smithy. LogAgent
1919import class SmithyStreams. BufferedStream
20+ import class SmithyHTTPClientAPI. HttpTelemetry
2021
2122class FoundationStreamBridgeTests : XCTestCase {
2223
@@ -70,15 +71,18 @@ class FoundationStreamBridgeTests: XCTestCase {
7071 bridgeBufferSize: bridgeBufferSize,
7172 boundStreamBufferSize: boundStreamBufferSize,
7273 logger: TestLogger ( ) ,
73- telemetry: HttpTelemetry ( httpScope: " FoundationStreamBridgeTests " ) )
74+ telemetry: HttpTelemetry (
75+ httpScope: " FoundationStreamBridgeTests " ,
76+ telemetryProvider: DefaultTelemetry . provider
77+ ) )
7478 await subject. open ( )
7579
7680 // This will hold the data that is bridged from the ReadableStream to the Foundation InputStream
7781 var bridgedData = Data ( )
7882
7983 // Open the input stream & read it to either end-of-data or a stream error
8084 subject. inputStream. open ( )
81- while ![ . atEnd, . error] . contains ( subject. inputStream. streamStatus) {
85+ while ![ Stream . Status . atEnd, Stream . Status . error] . contains ( subject. inputStream. streamStatus) {
8286
8387 // Copy the input stream to the temp buffer. When count is positive, bytes were read
8488 let count = subject. inputStream. read ( tempBuffer, maxLength: tempBufferSize)
0 commit comments