Skip to content

Commit a8ae563

Browse files
committed
refactor(test): de-duplicate MemoryMonitor.stop() implementation
We open-coded MemoryMonitor.stop() inside __exit__. Stop doing that. Signed-off-by: Patrick Roy <[email protected]>
1 parent 397f1b9 commit a8ae563

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/host_tools/memory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,5 @@ def __enter__(self):
170170
def __exit__(self, _type, _value, _traceback):
171171
"""Exit context"""
172172

173-
if self.is_alive():
174-
self.signal_stop()
175-
self.join(timeout=1)
173+
self.stop()
176174
self.check_samples()

0 commit comments

Comments
 (0)