Skip to content

Commit 0ae490e

Browse files
author
Roman
committed
fix
1 parent 67dd45f commit 0ae490e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/e2e_tests/conftest.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,9 @@ def try_start_docker():
184184
)
185185
if not result.stdout.strip():
186186
raise RuntimeError("Docker container failed to start.")
187-
188-
substrate = AsyncSubstrateInterface(url="ws://127.0.0.1:9944")
189-
yield substrate
187+
yield AsyncSubstrateInterface(url="ws://127.0.0.1:9944")
190188

191189
finally:
192-
try:
193-
if substrate:
194-
substrate.close()
195-
except Exception:
196-
pass
197-
198190
try:
199191
subprocess.run(["docker", "kill", container_name])
200192
process.wait(timeout=10)

0 commit comments

Comments
 (0)