From d3717fbab999b6dcff5731e63c351daf0bbf16e7 Mon Sep 17 00:00:00 2001 From: Kuba Mazurek Date: Mon, 16 Aug 2021 15:54:23 +0200 Subject: [PATCH] Update agent env vars in resubscription test --- tests/goth_tests/test_resubscription.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/goth_tests/test_resubscription.py b/tests/goth_tests/test_resubscription.py index 51c7acf0a..a7717d929 100644 --- a/tests/goth_tests/test_resubscription.py +++ b/tests/goth_tests/test_resubscription.py @@ -151,8 +151,8 @@ async def test_demand_resubscription(log_dir: Path, goth_config_path: Path, monk async with runner(goth_config.containers): requestor = runner.get_probes(probe_type=RequestorProbe)[0] - env = {**os.environ} - requestor.set_agent_env_vars(env) + env = requestor.get_agent_env_vars() + env.update(**os.environ) # Setup the environment for the requestor for key, val in env.items():