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):
70
70
finally :
71
71
profiler .stop ()
72
72
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
74
74
# initial delay (1 second)
75
75
# After 1 second, no flush -> sample
76
76
# After 2 seconds, it attempt to flush (possibly succeed) -> sample/ no sample
77
77
# 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)
79
79
assert wrapped_add .call_count >= 2
80
80
assert wrapped_post_agent_profile .call_count >= 1
81
81
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):
73
73
self .profiler_runner ._profiling_command ()
74
74
self .mock_collector .refresh_configuration .assert_called_once ()
75
75
76
- def test_when_it_does_not_sample_when_it_reports (self ):
76
+ def test_when_it_reports_it_does_not_sample (self ):
77
77
self .is_time_to_report = True
78
78
79
- assert ( self .profiler_runner ._profiling_command () )
79
+ assert self .profiler_runner ._profiling_command ()
80
80
self .mock_collector .flush .assert_called_once ()
81
81
self .mock_collector .add .assert_not_called ()
82
82
You can’t perform that action at this time.
0 commit comments