Skip to content

Commit 2c0e04b

Browse files
committed
Update test_worker.py
1 parent c56deda commit 2c0e04b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_serverless/test_worker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ async def test_run_worker_generator_handler_exception(
268268
generator_config = {
269269
"handler": generator_handler_exception, "refresh_worker": True}
270270

271-
# os.environ.pop("RUNPOD_ENDPOINT_ID")
271+
try:
272+
os.environ.pop("RUNPOD_ENDPOINT_ID")
273+
except KeyError:
274+
pass
275+
272276
runpod.serverless.start(generator_config)
273277

274278
assert mock_stream_result.call_count == 1

0 commit comments

Comments
 (0)