File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def grpc_interceptors():
109109
110110@pytest .fixture (scope = 'module' )
111111def _grpc_server (request , grpc_addr , grpc_interceptors ):
112- max_workers = request .config .getoption ('grpc-max-workers' , default = 1 )
112+ max_workers = request .config .getoption ('grpc-max-workers' )
113113 try :
114114 max_workers = max (request .module .grpc_max_workers , max_workers )
115115 except AttributeError :
@@ -158,4 +158,4 @@ def grpc_stub(grpc_stub_cls, grpc_channel):
158158
159159def pytest_addoption (parser ):
160160 parser .addoption ('--grpc-fake-server' , action = 'store_true' , dest = 'grpc-fake' )
161- parser .addoption ('--grpc-max-workers' , type = int , dest = 'grpc-max-workers' )
161+ parser .addoption ('--grpc-max-workers' , type = int , dest = 'grpc-max-workers' , default = 1 )
You can’t perform that action at this time.
0 commit comments