Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 5c84c73

Browse files
committed
fix tests
1 parent 6327330 commit 5c84c73

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

tests/unit/gapic/spanner_v1/test_spanner.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ def test_spanner_client_create_channel_credentials_file(
10661066
options=[
10671067
("grpc.max_send_message_length", -1),
10681068
("grpc.max_receive_message_length", -1),
1069+
("grpc.keepalive_time_ms", 120000),
10691070
],
10701071
)
10711072

@@ -12180,6 +12181,7 @@ def test_spanner_transport_create_channel(transport_class, grpc_helpers):
1218012181
options=[
1218112182
("grpc.max_send_message_length", -1),
1218212183
("grpc.max_receive_message_length", -1),
12184+
("grpc.keepalive_time_ms", 120000),
1218312185
],
1218412186
)
1218512187

@@ -12209,6 +12211,7 @@ def test_spanner_grpc_transport_client_cert_source_for_mtls(transport_class):
1220912211
options=[
1221012212
("grpc.max_send_message_length", -1),
1221112213
("grpc.max_receive_message_length", -1),
12214+
("grpc.keepalive_time_ms", 120000),
1221212215
],
1221312216
)
1221412217

@@ -12416,11 +12419,12 @@ def test_spanner_transport_channel_mtls_with_client_cert_source(transport_class)
1241612419
scopes=None,
1241712420
ssl_credentials=mock_ssl_cred,
1241812421
quota_project_id=None,
12419-
options=[
12420-
("grpc.max_send_message_length", -1),
12421-
("grpc.max_receive_message_length", -1),
12422-
],
12423-
)
12422+
options=[
12423+
("grpc.max_send_message_length", -1),
12424+
("grpc.max_receive_message_length", -1),
12425+
("grpc.keepalive_time_ms", 120000),
12426+
],
12427+
)
1242412428
assert transport.grpc_channel == mock_grpc_channel
1242512429
assert transport._ssl_channel_credentials == mock_ssl_cred
1242612430

@@ -12460,11 +12464,12 @@ def test_spanner_transport_channel_mtls_with_adc(transport_class):
1246012464
scopes=None,
1246112465
ssl_credentials=mock_ssl_cred,
1246212466
quota_project_id=None,
12463-
options=[
12464-
("grpc.max_send_message_length", -1),
12465-
("grpc.max_receive_message_length", -1),
12466-
],
12467-
)
12467+
options=[
12468+
("grpc.max_send_message_length", -1),
12469+
("grpc.max_receive_message_length", -1),
12470+
("grpc.keepalive_time_ms", 120000),
12471+
],
12472+
)
1246812473
assert transport.grpc_channel == mock_grpc_channel
1246912474

1247012475

0 commit comments

Comments
 (0)