Skip to content

Commit

Permalink
fixup! KTOR-6909 Add SocketTimeout for Test Engine (#4021)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhham committed May 6, 2024
1 parent 1e57c42 commit d1c78b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ class TestHttpClientEngine(override val config: TestHttpClientConfig) : HttpClie
}
}

private fun OutgoingContent.toByteReadChannel(timeoutAttributes: HttpTimeout.HttpTimeoutCapabilityConfiguration?): ByteReadChannel =
private fun OutgoingContent.toByteReadChannel(
timeoutAttributes: HttpTimeout.HttpTimeoutCapabilityConfiguration?
): ByteReadChannel =
when (this) {
is OutgoingContent.NoContent -> ByteReadChannel.Empty
is OutgoingContent.ByteArrayContent -> ByteReadChannel(bytes())
Expand Down

0 comments on commit d1c78b6

Please sign in to comment.