Skip to content

Commit 9221846

Browse files
committed
fix test
1 parent 99a47a2 commit 9221846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/endtoend/test_http_functions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ def test_return_streaming(self):
243243
streaming_url, timeout=REQUEST_TIMEOUT_SEC, stream=True)
244244
self.assertTrue(r.ok)
245245
# Validate streaming content
246-
expected_content = [b"First chunk\n", b"Second chunk\n"]
246+
expected_content = [b'First', b' chun', b'k\nSec', b'ond c', b'hunk\n']
247247
received_content = []
248-
for chunk in r.iter_content(chunk_size=1024):
248+
for chunk in r.iter_content(chunk_size=5):
249249
if chunk:
250250
received_content.append(chunk)
251251
self.assertEqual(received_content, expected_content)

0 commit comments

Comments
 (0)