Skip to content

Commit a4bd0a6

Browse files
committed
Update test_worker.py
1 parent 363b566 commit a4bd0a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_serverless/test_worker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ async def test_run_worker_generator_handler_exception(
267267
# Test generator handler
268268
generator_config = {
269269
"handler": generator_handler_exception, "refresh_worker": True}
270-
os.environ["RUNPOD_ENDPOINT_ID"] = "test_endpoint_id"
271-
runpod.serverless.start(generator_config)
270+
272271
os.environ.pop("RUNPOD_ENDPOINT_ID")
272+
runpod.serverless.start(generator_config)
273273

274274
assert mock_stream_result.call_count == 1
275275
assert not mock_run_job.called

0 commit comments

Comments
 (0)