Skip to content

Commit e0af12e

Browse files
committed
test(api-core): add test case to cover empty hostname endpoint
1 parent f70f6ce commit e0af12e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/google-api-core/tests/unit/gapic/test_client_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def test_get_default_mtls_endpoint():
7272
)
7373
assert get_default_mtls_endpoint("foo.com") == "foo.com"
7474
assert get_default_mtls_endpoint("foo.com:8080") == "foo.com:8080"
75+
assert get_default_mtls_endpoint("/") == "/"
7576

7677
# Test empty/None endpoints
7778
assert get_default_mtls_endpoint("") == ""

0 commit comments

Comments
 (0)