Skip to content

Commit f4b44db

Browse files
committed
Fix suffix issue
1 parent 9b5a91c commit f4b44db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdks/python/apache_beam/runners/worker/statesampler_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_timer_sampler(self):
139139
margin_of_error = 0.25
140140

141141
sampler.start()
142-
with sampler.scoped_state('step1', 'process-timers', suffix='-millis'):
142+
with sampler.scoped_state('step1', 'process-timers'):
143143
time.sleep(state_duration_ms / 1000)
144144
sampler.stop()
145145
sampler.commit_counters()
@@ -151,7 +151,7 @@ def test_timer_sampler(self):
151151
# Test that sampled state timings are close to their expected values.
152152
expected_counter_values = {
153153
CounterName(
154-
'process-timers', step_name='step1', stage_name='timer'): state_duration_ms,
154+
'process-timers-msecs', step_name='step1', stage_name='timer'): state_duration_ms,
155155
}
156156
for counter in counter_factory.get_counters():
157157
self.assertIn(counter.name, expected_counter_values)

0 commit comments

Comments
 (0)