Skip to content

Commit 96d51cf

Browse files
committed
Fixed project ID issue in system tests
1 parent cbcbc15 commit 96d51cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/system/admin_overlay/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222

2323
@pytest.fixture(scope="session")
2424
def admin_overlay_project_id():
25-
_, default_project = google.auth.default()
26-
yield os.getenv("GOOGLE_CLOUD_PROJECT") or default_project
25+
project_id = os.getenv("GOOGLE_CLOUD_PROJECT")
26+
if not project_id:
27+
_, project_id = google.auth.default()
28+
return project_id
2729

2830

2931
def generate_unique_suffix(name):

0 commit comments

Comments
 (0)