Skip to content

Commit a9cb163

Browse files
committed
Fix flaky performance test
Ensure URL encoding takes enough time so that cached version is measurably 10x faster
1 parent 004e845 commit a9cb163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/gapic/test_routing_header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def test__urlencode_param(key, value, expected):
9090
def test__urlencode_param_caching_performance():
9191
import time
9292

93-
key = "key" * 100
94-
value = "value" * 100
93+
key = "key" * 10000
94+
value = "value" * 10000
9595
# time with empty cache
9696
start_time = time.perf_counter()
9797
routing_header._urlencode_param(key, value)

0 commit comments

Comments
 (0)