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 e0eb42b commit 64213b5Copy full SHA for 64213b5
test/unit/test_profiler_runner.py
@@ -88,9 +88,7 @@ def test_when_orchestrator_says_no_to_profiler(self):
88
self.profiler_runner.start()
89
# still it is safer to wait until the new config has been applied
90
wait_for(lambda: AgentConfiguration.get().reporting_interval.total_seconds() == 151)
91
- # sometimes it takes a few milliseconds for the scheduler to be updated with the AgentConfiguration,
92
- # so let's sleep for 100 ms
93
- sleep(0.1)
+ wait_for(lambda: self.profiler_runner.scheduler._get_next_delay_seconds() == 151)
94
95
assert self.profiler_runner.scheduler._get_next_delay_seconds() == 151
96
self.mock_collector.add.assert_not_called()
0 commit comments