We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14be3d7 commit 0ccc5e8Copy full SHA for 0ccc5e8
tests/agent_features/test_priority_sampling.py
@@ -18,13 +18,15 @@
18
override_application_settings,
19
reset_core_stats_engine,
20
)
21
+from testing_support.util import retry
22
23
from newrelic.api.application import application_instance as application
24
from newrelic.api.background_task import BackgroundTask
25
26
27
@override_application_settings({"event_harvest_config.harvest_limits.analytic_event_data": 1})
28
@pytest.mark.parametrize("first_transaction_saved", [True, False])
29
+@retry(attempts=5, wait=2) # This test is flakey so add a retry.
30
def test_priority_used_in_transaction_events(first_transaction_saved):
31
first_priority = 1 if first_transaction_saved else 0
32
second_priority = 0 if first_transaction_saved else 1
0 commit comments