Skip to content
Snippets Groups Projects
Commit 345f5f49 authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

tests/artifactcache/pull.py: Do not double-initialize remotes


The initialization of remotes is done by ArtifactCache.setup_remotes()
and as such it was wrong for these tests to be calling
CASCache.initialize_remotes() a second time.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 7b117e40
No related branches found
No related tags found
1 merge request!797sandbox/_sandboxremote.py: Acquire cache via Platform
......@@ -137,7 +137,6 @@ def _test_pull(user_config_file, project_dir, artifact_dir,
# Manually setup the CAS remote
cas.setup_remotes(use_config=True)
cas.initialize_remotes()
if cas.has_push_remotes(element=element):
# Push the element's artifact
......@@ -274,7 +273,6 @@ def _test_push_tree(user_config_file, project_dir, artifact_dir, artifact_digest
# Manually setup the CAS remote
cas.setup_remotes(use_config=True)
cas.initialize_remotes()
if cas.has_push_remotes():
directory = remote_execution_pb2.Directory()
......@@ -310,7 +308,6 @@ def _test_pull_tree(user_config_file, project_dir, artifact_dir, artifact_digest
# Manually setup the CAS remote
cas.setup_remotes(use_config=True)
cas.initialize_remotes()
if cas.has_push_remotes():
# Pull the artifact using the Tree object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment