Skip to content

Commit

Permalink
tests: Don't wait for GCE instance teardown (#5037)
Browse files Browse the repository at this point in the history
Fixes GH-4987
  • Loading branch information
holmanb committed Mar 11, 2024
1 parent 9c64aba commit 4ece79d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration_tests/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from tempfile import NamedTemporaryFile
from typing import Union

from pycloudlib.gce.instance import GceInstance
from pycloudlib.instance import BaseInstance
from pycloudlib.result import Result

Expand Down Expand Up @@ -67,7 +68,10 @@ def __init__(
self._ip = ""

def destroy(self):
self.instance.delete()
if isinstance(self.instance, GceInstance):
self.instance.delete(wait=False)
else:
self.instance.delete()

def restart(self):
"""Restart this instance (via cloud mechanism) and wait for boot.
Expand Down

0 comments on commit 4ece79d

Please sign in to comment.