Skip to content

Commit

Permalink
fix failing appsec and asm telemetry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Sep 25, 2023
1 parent e2de91b commit b76c158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/appsec/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

@pytest.fixture
def mock_telemetry_lifecycle_writer():
telemetry_writer.disable()
telemetry_writer.enable()
telemetry_writer.reset_queues()
metrics_result = telemetry_writer._namespace._metrics_data
assert len(metrics_result[TELEMETRY_TYPE_GENERATE_METRICS][TELEMETRY_NAMESPACE_TAG_APPSEC]) == 0
assert len(metrics_result[TELEMETRY_TYPE_DISTRIBUTION][TELEMETRY_NAMESPACE_TAG_APPSEC]) == 0
Expand All @@ -19,8 +19,8 @@ def mock_telemetry_lifecycle_writer():

@pytest.fixture
def mock_logs_telemetry_lifecycle_writer():
telemetry_writer.disable()
telemetry_writer.enable()
telemetry_writer.reset_queues()
metrics_result = telemetry_writer._logs
assert len(metrics_result) == 0
yield telemetry_writer
Expand Down

0 comments on commit b76c158

Please sign in to comment.