Skip to content

Commit e9c7cfb

Browse files
committed
Fix ddb mapper BM test
1 parent 671774f commit e9c7cfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hll/dynamodb-mapper/dynamodb-mapper/jvm/test/aws/sdk/kotlin/hll/dynamodbmapper/DynamoDbMapperTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class DynamoDbMapperTest : DdbLocalTest() {
7979
}
8080

8181
private class MetricCapturingInterceptor : HttpInterceptor {
82-
private val capturedMetrics = mutableSetOf<String>()
82+
private val capturedMetrics = mutableSetOf<BusinessMetric>()
8383

8484
override fun readBeforeTransmit(context: ProtocolRequestInterceptorContext<Any, HttpRequest>) {
8585
capturedMetrics += context.executionContext[BusinessMetrics]
@@ -88,12 +88,12 @@ private class MetricCapturingInterceptor : HttpInterceptor {
8888
fun assertMetric(metric: BusinessMetric, exists: Boolean = true) {
8989
if (exists) {
9090
assertTrue(
91-
metric.identifier in capturedMetrics,
91+
metric in capturedMetrics,
9292
"Expected metrics to contain $metric. Actual values: $capturedMetrics",
9393
)
9494
} else {
9595
assertFalse(
96-
metric.identifier in capturedMetrics,
96+
metric in capturedMetrics,
9797
"Expected metrics *not* to contain $metric. Actual values: $capturedMetrics",
9898
)
9999
}

0 commit comments

Comments
 (0)