Tests: minor fixes.
This commit is contained in:
@@ -347,7 +347,6 @@ class TestRubyApplication(TestApplicationRuby):
|
||||
headers={
|
||||
'Host': 'localhost',
|
||||
'Connection': 'keep-alive',
|
||||
'Content-Type': 'text/html',
|
||||
},
|
||||
start=True,
|
||||
body=body,
|
||||
@@ -357,15 +356,7 @@ class TestRubyApplication(TestApplicationRuby):
|
||||
assert resp['body'] == body, 'keep-alive 1'
|
||||
|
||||
body = '0123456789'
|
||||
resp = self.post(
|
||||
headers={
|
||||
'Host': 'localhost',
|
||||
'Connection': 'close',
|
||||
'Content-Type': 'text/html',
|
||||
},
|
||||
sock=sock,
|
||||
body=body,
|
||||
)
|
||||
resp = self.post(sock=sock, body=body)
|
||||
|
||||
assert resp['body'] == body, 'keep-alive 2'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user