Skip to content

Commit 396bfa7

Browse files
committed
default value wasn't working
1 parent ce225a5 commit 396bfa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_grpc/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def grpc_interceptors():
109109

110110
@pytest.fixture(scope='module')
111111
def _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

159159
def 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)

0 commit comments

Comments
 (0)