Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 1946bb9

Browse files
committed
Update old integration test to use trailers.
1 parent 93beb4b commit 1946bb9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_integration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ def socket_handler(listener):
361361

362362
# Confirm that we got the trailing headers, and that they don't contain
363363
# reserved headers.
364-
assert resp.getheader('trailing') == 'sure'
365-
assert resp.getheader(':res') is None
366-
assert len(resp.getheaders()) == 2
364+
assert resp.gettrailer('trailing') == 'sure'
365+
assert resp.gettrailer(':res') is None
366+
assert len(resp.getheaders()) == 1
367+
assert len(resp.gettrailers()) == 1
367368

368369
# Awesome, we're done now.
369370
recv_event.set()

0 commit comments

Comments
 (0)