diff --git a/test/agent_otel_merging/agent_otel_merging_test.go b/test/agent_otel_merging/agent_otel_merging_test.go index c150c6cbc..e86252e1d 100644 --- a/test/agent_otel_merging/agent_otel_merging_test.go +++ b/test/agent_otel_merging/agent_otel_merging_test.go @@ -111,8 +111,7 @@ func verifyMetricsInCloudWatch(t *testing.T) { statType, nil, ) - fmt.Println(err) - fmt.Println(resp.Datapoints) + require.NoError(t, err, "Failed to fetch metric from CloudWatch") require.NotEmpty(t, resp.Datapoints, "No data points found for the metric")