File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,12 @@ def test_live_profiling(self):
7070 finally :
7171 profiler .stop ()
7272
73- # We should see at least 2 sample in 4 seconds as the sequence should happen in the order of
73+ # We should see at least 2 samples in 4 seconds as the sequence should happen in the order of
7474 # initial delay (1 second)
7575 # After 1 second, no flush -> sample
7676 # After 2 seconds, it attempt to flush (possibly succeed) -> sample/ no sample
7777 # After 3 seconds, it attempt to flush (must succeed if it did not flush before) -> no sample/ sample
78- # After 4 seconds, no flush -> sample
78+ # After 4 seconds, no flush -> sample (if profiler has not stopped yet)
7979 assert wrapped_add .call_count >= 2
8080 assert wrapped_post_agent_profile .call_count >= 1
8181 assert wrapped_configure_agent .call_count >= 1
Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ def test_when_it_is_time_to_report_it_refreshes_configuration_again(self):
7373 self .profiler_runner ._profiling_command ()
7474 self .mock_collector .refresh_configuration .assert_called_once ()
7575
76- def test_when_it_does_not_sample_when_it_reports (self ):
76+ def test_when_it_reports_it_does_not_sample (self ):
7777 self .is_time_to_report = True
7878
79- assert ( self .profiler_runner ._profiling_command () )
79+ assert self .profiler_runner ._profiling_command ()
8080 self .mock_collector .flush .assert_called_once ()
8181 self .mock_collector .add .assert_not_called ()
8282
You can’t perform that action at this time.
0 commit comments