File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments