diff options
author | Jürg Billeter <j@bitron.ch> | 2020-10-08 17:09:00 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-12-14 10:42:59 +0100 |
commit | 6b4baf81ad123d68f21560a13cbecb546155314f (patch) | |
tree | 29edfbf2a2098f839bde92b7d946f7eaa2e7aa7d /tests/sourcecache/push.py | |
parent | 592c04e44fb73151f5273f7125aaf7e0b60b925d (diff) | |
download | buildstream-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.py | 2 |
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] |