Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e-subtensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
os:
- ubuntu-latest
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check-out repository
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import logging
import os
import re
Expand Down Expand Up @@ -142,7 +143,7 @@ def try_start_docker():
return False

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

# Command to start container
cmds = [
Expand Down Expand Up @@ -184,16 +185,15 @@ def try_start_docker():
)
if not result.stdout.strip():
raise RuntimeError("Docker container failed to start.")

substrate = AsyncSubstrateInterface(url="ws://127.0.0.1:9944")
yield substrate

finally:
try:
if substrate:
substrate.close()
asyncio.run(substrate.close())
except Exception:
pass
logging.warning("Failed to close substrate connection.")

try:
subprocess.run(["docker", "kill", container_name])
Expand Down
Loading