From c52d3a96a87d48cdfa9033d6d1565a033ec1001b Mon Sep 17 00:00:00 2001 From: Ilia Kurenkov Date: Fri, 2 Aug 2024 22:37:02 +0200 Subject: [PATCH] Mark some sqlserver flaky tests (#18181) --- sqlserver/tests/test_metadata.py | 1 + sqlserver/tests/test_statements.py | 1 + sqlserver/tests/test_stored_procedures.py | 1 + 3 files changed, 3 insertions(+) diff --git a/sqlserver/tests/test_metadata.py b/sqlserver/tests/test_metadata.py index b0a0bd7348955..d5d5b54534e4d 100644 --- a/sqlserver/tests/test_metadata.py +++ b/sqlserver/tests/test_metadata.py @@ -382,6 +382,7 @@ def test_collect_schemas(aggregator, dd_run_check, dbm_instance): raise AssertionError(Exception("found the following diffs: " + str(difference))) +@pytest.mark.flaky def test_schemas_collection_truncated(aggregator, dd_run_check, dbm_instance): dbm_instance['database_autodiscovery'] = True dbm_instance['autodiscovery_include'] = ['datadog_test_schemas'] diff --git a/sqlserver/tests/test_statements.py b/sqlserver/tests/test_statements.py index 8a49f0edf40f6..ee8f3a7599b2f 100644 --- a/sqlserver/tests/test_statements.py +++ b/sqlserver/tests/test_statements.py @@ -1021,6 +1021,7 @@ def test_metrics_lookback_multiplier(instance_docker): mock_cursor.execute.assert_called_with(ANY, (6,)) +@pytest.mark.flaky @pytest.mark.integration @pytest.mark.usefixtures('dd_environment') @pytest.mark.parametrize( diff --git a/sqlserver/tests/test_stored_procedures.py b/sqlserver/tests/test_stored_procedures.py index c6297231fcaf8..ebc1588e8c3e7 100644 --- a/sqlserver/tests/test_stored_procedures.py +++ b/sqlserver/tests/test_stored_procedures.py @@ -207,6 +207,7 @@ def test_get_procedure_metrics_query_cached(aggregator, dbm_instance, caplog): ) +@pytest.mark.flaky @pytest.mark.integration @pytest.mark.usefixtures('dd_environment') @pytest.mark.parametrize(*test_procedure_metrics_parametrized)