Skip to content

Commit 2d3a32c

Browse files
author
Roman
committed
add pull command
1 parent 25ad35a commit 2d3a32c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e_tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
from .utils import setup_wallet
1616

17+
LOCALNET_IMAGE_NAME = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
18+
1719

1820
def wait_for_node_start(process, pattern, timestamp: int = None):
1921
for line in process.stdout:
@@ -113,6 +115,7 @@ def is_docker_running():
113115
stderr=subprocess.DEVNULL,
114116
check=True,
115117
)
118+
subprocess.run(["docker", "pull", LOCALNET_IMAGE_NAME], check=True)
116119
return True
117120
except subprocess.CalledProcessError:
118121
return False
@@ -143,7 +146,6 @@ def try_start_docker():
143146
return False
144147

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

148150
# Command to start container
149151
cmds = [
@@ -156,7 +158,7 @@ def try_start_docker():
156158
"9944:9944",
157159
"-p",
158160
"9945:9945",
159-
image_name,
161+
LOCALNET_IMAGE_NAME,
160162
params,
161163
]
162164

0 commit comments

Comments
 (0)