Skip to content

Commit 7dfe8b5

Browse files
committed
httpserver_test: Add ExpectLog to fix CI
The github security advisory feature lets you make private PRs but it apparently doesn't support CI so this log failure wasn't caught until after the PR was merged.
1 parent 217295b commit 7dfe8b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tornado/test/httpserver_test.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,10 @@ def test_chunked_request_body_invalid_size(self):
575575
b"\n", b"\r\n"
576576
)
577577
)
578-
start_line, headers, response = self.io_loop.run_sync(
579-
lambda: read_stream_body(self.stream)
580-
)
578+
with ExpectLog(gen_log, ".*invalid chunk size", level=logging.INFO):
579+
start_line, headers, response = self.io_loop.run_sync(
580+
lambda: read_stream_body(self.stream)
581+
)
581582
self.assertEqual(400, start_line.code)
582583

583584
@gen_test

0 commit comments

Comments
 (0)