summaryrefslogtreecommitdiff
path: root/tests/sourcecache/push.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-10-08 17:09:00 +0200
committerJürg Billeter <j@bitron.ch>2020-12-14 10:42:59 +0100
commit6b4baf81ad123d68f21560a13cbecb546155314f (patch)
tree29edfbf2a2098f839bde92b7d946f7eaa2e7aa7d /tests/sourcecache/push.py
parent592c04e44fb73151f5273f7125aaf7e0b60b925d (diff)
downloadbuildstream-juerg/cache-query-job.tar.gz
Call _initialize_state() in Element._new_from_load_element()juerg/cache-query-job
With the cache queries moved to job threads, `_initialize_state()` is fairly lightweight and can be called earlier.
Diffstat (limited to 'tests/sourcecache/push.py')
-rw-r--r--tests/sourcecache/push.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py
index 9288446e5..3291c4023 100644
--- a/tests/sourcecache/push.py
+++ b/tests/sourcecache/push.py
@@ -84,7 +84,6 @@ def test_source_push_split(cli, tmpdir, datafiles):
project.ensure_fully_loaded()
element = project.load_elements(["push.bst"])[0]
- element._initialize_state()
element._fetch(check_only=True)
assert not element._cached_sources()
source = list(element.sources())[0]
@@ -135,7 +134,6 @@ def test_source_push(cli, tmpdir, datafiles):
project.ensure_fully_loaded()
element = project.load_elements(["push.bst"])[0]
- element._initialize_state()
element._fetch(check_only=True)
assert not element._cached_sources()
source = list(element.sources())[0]