Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Speed up test_POST_large_json_x10 with a smaller JSON (#7859)

Adrianfc226e66423d
diff --git a/tests/test_http2_client_protocol.py b/tests/test_http2_client_protocol.py
index 075f1acb9..e96a5484e 100644
--- a/tests/test_http2_client_protocol.py
+++ b/tests/test_http2_client_protocol.py
@@ -76,7 +76,7 @@ class Data:
STR_LARGE = generate_random_string(LARGE_SIZE)
EXTRA_SMALL = generate_random_string(1024 * 15)
- EXTRA_LARGE = generate_random_string((1024**2) * 15)
+ EXTRA_LARGE = generate_random_string(LARGE_SIZE)
HTML_SMALL = make_html_body(STR_SMALL)
HTML_LARGE = make_html_body(STR_LARGE)