Skip to content

Commit 363b566

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_serverless/test_worker.py

+2
Original file line numberDiff line numberDiff line change
@@ -267,7 +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"
270271
runpod.serverless.start(generator_config)
272+
os.environ.pop("RUNPOD_ENDPOINT_ID")
271273

272274
assert mock_stream_result.call_count == 1
273275
assert not mock_run_job.called

0 commit comments

Comments
 (0)