From 1a4f99b6c0863d7dc2ea505d720cc86c1927abd0 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Mon, 17 Jun 2024 12:46:35 -0400 Subject: [PATCH] fix CI ? --- .../http/interceptors/BusinessMetricsInterceptorTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws-runtime/aws-http/common/test/aws/sdk/kotlin/runtime/http/interceptors/BusinessMetricsInterceptorTest.kt b/aws-runtime/aws-http/common/test/aws/sdk/kotlin/runtime/http/interceptors/BusinessMetricsInterceptorTest.kt index 1d07cabbb7e..8469d6fd4ea 100644 --- a/aws-runtime/aws-http/common/test/aws/sdk/kotlin/runtime/http/interceptors/BusinessMetricsInterceptorTest.kt +++ b/aws-runtime/aws-http/common/test/aws/sdk/kotlin/runtime/http/interceptors/BusinessMetricsInterceptorTest.kt @@ -75,7 +75,7 @@ class BusinessMetricsInterceptorTest { val rawMetrics = executionContext[aws.smithy.kotlin.runtime.businessmetrics.BusinessMetrics] val rawMetricsString = rawMetrics.joinToString(",", "m/") - val rawMetricsByteArray = rawMetricsString.toByteArray() + val rawMetricsByteArray = rawMetricsString.encodeToByteArray() assertTrue(rawMetricsByteArray.size >= BUSINESS_METRICS_MAX_LENGTH) @@ -84,7 +84,7 @@ class BusinessMetricsInterceptorTest { val userAgentHeader = request.headers[USER_AGENT]!! val truncatedMetrics = "m/" + userAgentHeader.substringAfter("m/") - assertTrue(truncatedMetrics.toByteArray().size <= BUSINESS_METRICS_MAX_LENGTH) + assertTrue(truncatedMetrics.encodeToByteArray().size <= BUSINESS_METRICS_MAX_LENGTH) assertFalse(truncatedMetrics.endsWith(",")) }