Skip to content

Commit 065208a

Browse files
author
Colman Yau
committed
Fix typo suggested in review
1 parent 25a446e commit 065208a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/acceptance/test_live_profiling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

test/unit/test_profiler_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)