File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hll/dynamodb-mapper/dynamodb-mapper/jvm/test/aws/sdk/kotlin/hll/dynamodbmapper Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class DynamoDbMapperTest : DdbLocalTest() {
7979}
8080
8181private 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 }
You can’t perform that action at this time.
0 commit comments