Skip to content

Commit f5ae742

Browse files
committed
Fixed metrics test by not sending second set of resource metrics
1 parent 53ee554 commit f5ae742

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/functional/test_run_class.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ def test_log_metrics(
158158
retention_period="1 hour",
159159
visibility=visibility,
160160
)
161-
run.config(system_metrics_interval=1)
161+
# Will log system metrics on startup, and then not again within timeframe of test
162+
# So should have exactly one measurement of this
163+
run.config(system_metrics_interval=100)
162164
return
163165

164166
run.init(
@@ -171,8 +173,9 @@ def test_log_metrics(
171173
visibility=visibility,
172174
retention_period="1 hour",
173175
)
174-
run.config(system_metrics_interval=1)
175-
176+
# Will log system metrics on startup, and then not again within timeframe of test
177+
# So should have exactly one measurement of this
178+
run.config(system_metrics_interval=100)
176179
# Speed up the read rate for this test
177180
run._dispatcher._max_buffer_size = 10
178181
run._dispatcher._max_read_rate *= 10

0 commit comments

Comments
 (0)