diff --git a/neofs-testlib/neofs_testlib/env/env.py b/neofs-testlib/neofs_testlib/env/env.py index 976833d9e..b34c9a5eb 100644 --- a/neofs-testlib/neofs_testlib/env/env.py +++ b/neofs-testlib/neofs_testlib/env/env.py @@ -238,8 +238,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: