Skip to content

Commit 4779efe

Browse files
committed
Fix tests: wait for generate_configs
1 parent c89d0f1 commit 4779efe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/permissions_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def __run_config_generator(self, generator_config):
7676
os.environ["INPUT_CONFIG_PATH"] = os.path.join(tmpdirpath, "config-in")
7777
os.environ["OUTPUT_CONFIG_PATH"] = os.path.join(tmpdirpath, "config")
7878

79-
url = "/generate_configs?tenant=default&use_cached_project_metadata=true"
79+
url = "/generate_configs?tenant=default&stream_response=true&use_cached_project_metadata=true"
8080
response = self.app.post(url)
81+
data = response.get_data() # Force reading data to ensure streamed response is fully read
8182

8283
if response.status_code != 200:
8384
print(response.text)

0 commit comments

Comments
 (0)