From dcbfcdbf80b6f8a89aea1b513f358ea2ee354f7b Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Mon, 1 Feb 2021 13:19:05 -0800 Subject: [PATCH] formatting --- tools/run_tests/run_xds_tests.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py index 6d68fb3696f..12d85614263 100755 --- a/tools/run_tests/run_xds_tests.py +++ b/tools/run_tests/run_xds_tests.py @@ -1471,7 +1471,9 @@ def test_timeout(gcp, original_backend_service, instance_group): }], 'service': original_backend_service.url, 'routeAction': { - 'maxStreamDuration': {'seconds': 3}, + 'maxStreamDuration': { + 'seconds': 3, + }, }, }] patch_url_map_backend_service(gcp, @@ -1495,7 +1497,8 @@ def test_timeout(gcp, original_backend_service, instance_group): { 'UNARY_CALL': 4, # DEADLINE_EXCEEDED }, - ), ( + ), + ( 'timeout_not_exceeded', # UnaryCall only with no sleep; calls succeed. { @@ -1506,7 +1509,8 @@ def test_timeout(gcp, original_backend_service, instance_group): { 'UNARY_CALL': 0, }, - ), ( + ), + ( 'timeout_exceeded (UNARY_CALL), timeout_different_route (EMPTY_CALL)', # UnaryCall and EmptyCall both sleep-4. # UnaryCall timeouts, EmptyCall succeeds. @@ -1569,9 +1573,9 @@ def test_timeout(gcp, original_backend_service, instance_group): before_stats = after_stats else: raise Exception( - '%s: timeout waiting for expected results: %s; got %s' - % (testcase_name, expected_results, - after_stats.stats_per_method)) + '%s: timeout waiting for expected results: %s; got %s' % + (testcase_name, expected_results, + after_stats.stats_per_method)) finally: patch_url_map_backend_service(gcp, original_backend_service)