Skip to content

Commit bb83d15

Browse files
authored
Merge pull request #396 from opentensor/fix/roman/fix-tests
Fix e2e test
2 parents 67dd45f + 1cfe029 commit bb83d15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/e2e-subtensor-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
os:
7474
- ubuntu-latest
7575
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
76-
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
76+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
7777
steps:
7878
- name: Check-out repository
7979
uses: actions/checkout@v4

tests/e2e_tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
import logging
23
import os
34
import re
@@ -142,7 +143,7 @@ def try_start_docker():
142143
return False
143144

144145
container_name = f"test_local_chain_{str(time.time()).replace('.', '_')}"
145-
image_name = "ghcr.io/opentensor/subtensor-localnet:latest"
146+
image_name = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
146147

147148
# Command to start container
148149
cmds = [
@@ -184,16 +185,15 @@ def try_start_docker():
184185
)
185186
if not result.stdout.strip():
186187
raise RuntimeError("Docker container failed to start.")
187-
188188
substrate = AsyncSubstrateInterface(url="ws://127.0.0.1:9944")
189189
yield substrate
190190

191191
finally:
192192
try:
193193
if substrate:
194-
substrate.close()
194+
asyncio.run(substrate.close())
195195
except Exception:
196-
pass
196+
logging.warning("Failed to close substrate connection.")
197197

198198
try:
199199
subprocess.run(["docker", "kill", container_name])

0 commit comments

Comments
 (0)