Skip to content

Commit 4a08376

Browse files
Trying to fix a test that fails sometimes.
1 parent 3329fe2 commit 4a08376

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/test_profiler_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def test_when_disabler_say_to_stop(self):
8282
def test_when_orchestrator_says_no_to_profiler(self):
8383
self.agent_configuration = AgentConfiguration(should_profile=False,
8484
sampling_interval=timedelta(seconds=2),
85-
reporting_interval=timedelta(seconds=150))
85+
reporting_interval=timedelta(seconds=151))
8686
# calling start in this test, it will start the scheduler and because initial delay is 0 it will execute now
8787
self.profiler_runner.start()
8888
# still it is safer to wait until the new config has been applied
89-
wait_for(lambda: AgentConfiguration.get().should_profile is False)
89+
wait_for(lambda: AgentConfiguration.get().reporting_interval.total_seconds() == 151)
9090

91-
assert self.profiler_runner.scheduler._get_next_delay_seconds() == 150
91+
assert self.profiler_runner.scheduler._get_next_delay_seconds() == 151
9292
self.mock_collector.add.assert_not_called()

0 commit comments

Comments
 (0)