From 329ff938b50a677f0c7ad787469ac9981d8d4069 Mon Sep 17 00:00:00 2001 From: Paschalis Tsilias Date: Mon, 6 Nov 2023 13:44:53 +0200 Subject: [PATCH] Disable integration test Signed-off-by: Paschalis Tsilias --- .../tests/otlp-metrics/otlp_metrics_test.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/integration-tests/tests/otlp-metrics/otlp_metrics_test.go b/integration-tests/tests/otlp-metrics/otlp_metrics_test.go index a4bdd887c50c..d2e501fdff47 100644 --- a/integration-tests/tests/otlp-metrics/otlp_metrics_test.go +++ b/integration-tests/tests/otlp-metrics/otlp_metrics_test.go @@ -13,11 +13,16 @@ func TestOtlpMetrics(t *testing.T) { var metricResponse common.MetricResponse assert.EventuallyWithT(t, func(c *assert.CollectT) { err := common.FetchDataFromURL(query, &metricResponse) - assert.NoError(c, err) - if assert.NotEmpty(c, metricResponse.Data.Result) { - assert.Equal(c, metricResponse.Data.Result[0].Metric.Name, "span_metrics_duration_bucket") - assert.Equal(c, metricResponse.Data.Result[0].Metric.TestName, "otlp_metrics") - assert.NotEmpty(c, metricResponse.Data.Result[0].Value.Value) - } + //assert.NoError(c, err) + //if assert.NotEmpty(c, metricResponse.Data.Result) { + // assert.NoError(c, err) + // assert.Equal(c, metricResponse.Data.Result[0].Metric.Name, "span_metrics_duration_bucket") + // assert.Equal(c, metricResponse.Data.Result[0].Metric.TestName, "otlp_metrics") + // assert.NotEmpty(c, metricResponse.Data.Result[0].Value.Value) + //} + // Disabling the above checks as part of the workaround in #5684. + // TODO(@ptodev, @tpaschalis) Fix this once the workaround in #5684 is removed. + assert.Error(c, err) + assert.Empty(c, metricResponse.Data.Result) }, common.DefaultTimeout, common.DefaultRetryInterval, "Data did not satisfy the conditions within the time limit") }