Skip to content

Commit ab3b540

Browse files
roypatkalyazin
authored andcommitted
refactor(test): de-duplicate MemoryMonitor.stop() implementation
We open-coded MemoryMonitor.stop() inside __exit__. Stop doing that. Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent a093711 commit ab3b540

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
@@ -174,7 +174,5 @@ def __enter__(self):
174174
def __exit__(self, _type, _value, _traceback):
175175
"""Exit context"""
176176

177-
if self.is_alive():
178-
self.signal_stop()
179-
self.join(timeout=1)
177+
self.stop()
180178
self.check_samples()

0 commit comments

Comments
 (0)