From ee157212da2510f26ac66c123c3a6702dd4ce8a0 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 6 Oct 2023 13:17:46 -0400 Subject: [PATCH] ktlintFormat --- .../http/interceptors/ClockSkewInterceptor.kt | 2 +- .../interceptors/ClockSkewInterceptorTest.kt | 20 ++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptor.kt b/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptor.kt index c1ec055d9..7f8d4d57c 100644 --- a/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptor.kt +++ b/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptor.kt @@ -47,7 +47,7 @@ public class ClockSkewInterceptor : HttpInterceptor { val logger = coroutineContext.logger() if (currentSkew != Duration.ZERO) { - logger.info { "applying clock skew $currentSkew to client"} + logger.info { "applying clock skew $currentSkew to client" } context.executionContext[HttpOperationContext.ClockSkew] = currentSkew } diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptorTest.kt index 5db6b9b9b..262eaeebc 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ClockSkewInterceptorTest.kt @@ -10,9 +10,9 @@ import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companio import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companion.getSkew import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companion.isSkewed import aws.smithy.kotlin.runtime.http.operation.HttpOperationContext -import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.http.operation.newTestOperation import aws.smithy.kotlin.runtime.http.operation.roundTrip +import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.http.response.HttpResponse import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.io.SdkSource @@ -69,9 +69,12 @@ class ClockSkewInterceptorTest { val clientTimeString = "20231006T131604Z" val clientTime = Instant.fromIso8601(clientTimeString) - val client = getMockClient("bla".encodeToByteArray(), Headers { - append("Date", serverTimeString) - }) + val client = getMockClient( + "bla".encodeToByteArray(), + Headers { + append("Date", serverTimeString) + }, + ) val req = HttpRequestBuilder().apply { body = ByteArrayContent("bar".encodeToByteArray()) @@ -93,9 +96,12 @@ class ClockSkewInterceptorTest { val serverTimeString = "Wed, 06 Oct 2023 13:16:04 -0000" val clientTimeString = "20231006T131604Z" - val client = getMockClient("bla".encodeToByteArray(), Headers { - append("Date", serverTimeString) - }) + val client = getMockClient( + "bla".encodeToByteArray(), + Headers { + append("Date", serverTimeString) + }, + ) val req = HttpRequestBuilder().apply { body = ByteArrayContent("bar".encodeToByteArray())