Skip to content

Commit 2a73fdd

Browse files
committed
CI: Ignore test layer timeout on tear down on Windows
1 parent 18e60c3 commit 2a73fdd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/crate/testing/layer.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ def start(self):
327327
def stop(self):
328328
if self.process:
329329
self.process.terminate()
330-
self.process.communicate(timeout=45)
330+
try:
331+
self.process.communicate(timeout=10)
332+
except subprocess.TimeoutExpired:
333+
# On GHA/Windows, it always runs into a timeout, even after 45 seconds.
334+
pass
331335
self.process.stdout.close()
332336
self.process = None
333337
self.conn_pool.clear()

0 commit comments

Comments
 (0)