Skip to content

Commit

Permalink
Fix failed tests due to lack of passing config to a Request
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem authored and benoitc committed Mar 3, 2010
1 parent 0774607 commit e5e6b70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/t.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from gunicorn.http.parser import Parser
from gunicorn.http.request import Request
from gunicorn.config import Config

def data_source(fname):
with open(fname) as handle:
Expand Down Expand Up @@ -73,7 +74,7 @@ def __init__(self, name):
def __call__(self, func):
def run():
fsock = FakeSocket(data_source(self.fname))
req = Request(fsock, ('127.0.0.1', 6000), ('127.0.0.1', 8000))
req = Request(fsock, ('127.0.0.1', 6000), ('127.0.0.1', 8000), Config({}))
func(req)
run.func_name = func.func_name
return run
Expand Down

0 comments on commit e5e6b70

Please sign in to comment.