From bf67a1fbbd4d72eb02e4a41230c779081a1d48be Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Wed, 18 Oct 2023 23:19:52 +0800 Subject: [PATCH] Fix gateway integration test --- tests/integration/network/gateway_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/network/gateway_test.py b/tests/integration/network/gateway_test.py index b58b9cc12fb..e5c1e4e6adf 100644 --- a/tests/integration/network/gateway_test.py +++ b/tests/integration/network/gateway_test.py @@ -39,8 +39,12 @@ def test_domain_connect_to_gateway(domain_1_port, gateway_port): assert proxy_domain_client.metadata == domain_client.metadata assert proxy_domain_client.user_role == ServiceRole.NONE - domain_client.login(email="info@openmined.org", password="changethis") - proxy_domain_client.login(email="info@openmined.org", password="changethis") + domain_client = domain_client.login( + email="info@openmined.org", password="changethis" + ) + proxy_domain_client = proxy_domain_client.login( + email="info@openmined.org", password="changethis" + ) assert proxy_domain_client.logged_in_user == "info@openmined.org" assert proxy_domain_client.user_role == ServiceRole.ADMIN