Skip to content

Commit 9334056

Browse files
committed
Update test_worker.py
1 parent f93b7b9 commit 9334056

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/test_serverless/test_worker.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def setUp(self):
189189
@patch("runpod.serverless.worker.stream_result")
190190
@patch("runpod.serverless.worker.send_result")
191191
# pylint: disable=too-many-arguments
192-
async def test_run_worker(
192+
def test_run_worker(
193193
self, mock_send_result, mock_stream_result, mock_run_job, mock_get_job, mock_session):
194194
'''
195195
Test run_worker with synchronous handler.
@@ -220,7 +220,7 @@ async def test_run_worker(
220220
@patch("runpod.serverless.worker.run_job")
221221
@patch("runpod.serverless.worker.stream_result")
222222
@patch("runpod.serverless.worker.send_result")
223-
async def test_run_worker_generator_handler(
223+
def test_run_worker_generator_handler(
224224
self, mock_send_result, mock_stream_result, mock_run_job,
225225
mock_get_job):
226226
'''
@@ -252,7 +252,7 @@ async def test_run_worker_generator_handler(
252252
@patch("runpod.serverless.worker.run_job")
253253
@patch("runpod.serverless.worker.stream_result")
254254
@patch("runpod.serverless.worker.send_result")
255-
async def test_run_worker_generator_handler_exception(
255+
def test_run_worker_generator_handler_exception(
256256
self, mock_send_result, mock_stream_result, mock_run_job,
257257
mock_get_job):
258258
'''
@@ -284,7 +284,7 @@ async def test_run_worker_generator_handler_exception(
284284
@patch("runpod.serverless.worker.run_job")
285285
@patch("runpod.serverless.worker.stream_result")
286286
@patch("runpod.serverless.worker.send_result")
287-
async def test_run_worker_generator_aggregate_handler(
287+
def test_run_worker_generator_aggregate_handler(
288288
self, mock_send_result, mock_stream_result, mock_run_job,
289289
mock_get_job):
290290
'''
@@ -320,7 +320,7 @@ async def test_run_worker_generator_aggregate_handler(
320320
@patch("runpod.serverless.worker.stream_result")
321321
@patch("runpod.serverless.worker.send_result")
322322
# pylint: disable=too-many-arguments
323-
async def test_run_worker_concurrency(
323+
def test_run_worker_concurrency(
324324
self, mock_send_result, mock_stream_result, mock_run_job, mock_get_job, mock_session):
325325
'''
326326
Test run_worker with synchronous handler.
@@ -359,7 +359,7 @@ def concurrency_modifier(current_concurrency):
359359
@patch("runpod.serverless.worker.stream_result")
360360
@patch("runpod.serverless.worker.send_result")
361361
# pylint: disable=too-many-arguments
362-
async def test_run_worker_multi_processing(
362+
def test_run_worker_multi_processing(
363363
self, mock_send_result, mock_stream_result, mock_run_job, mock_get_job, mock_session):
364364
'''
365365
Test run_worker with multi processing enabled, both async and generator handler.
@@ -418,7 +418,7 @@ async def test_run_worker_multi_processing(
418418

419419
@patch("runpod.serverless.modules.rp_scale.get_job")
420420
@patch("runpod.serverless.worker.run_job")
421-
async def test_run_worker_multi_processing_scaling_up(
421+
def test_run_worker_multi_processing_scaling_up(
422422
self, mock_run_job, mock_get_job):
423423
'''
424424
Test run_worker with multi processing enabled, the scale-up and scale-down
@@ -464,7 +464,7 @@ def mock_is_alive():
464464
runpod.serverless.start(config)
465465

466466
# Test with sls-core
467-
async def test_run_worker_with_sls_core(self):
467+
def test_run_worker_with_sls_core(self):
468468
'''
469469
Test run_worker with sls-core.
470470
'''

0 commit comments

Comments
 (0)