Skip to content

Commit

Permalink
fix CI ?
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Jun 17, 2024
1 parent bbccd01 commit 1a4f99b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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(","))
}

Expand Down

0 comments on commit 1a4f99b

Please sign in to comment.