Skip to content

Commit

Permalink
env: do not kill non existing processes
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Jun 2, 2024
1 parent f5de47d commit 7f6f2b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ def generate_alphabet_wallets(

@allure.step("Kill current neofs env")
def kill(self):
self.rest_gw.process.kill()
self.s3_gw.process.kill()
if self.rest_gw:
self.rest_gw.process.kill()
if self.s3_gw:
self.s3_gw.process.kill()
for sn in self.storage_nodes:
sn.process.kill()
for ir in self.inner_ring_nodes:
Expand Down

0 comments on commit 7f6f2b3

Please sign in to comment.