Skip to content

Commit 89b4d2d

Browse files
test issue fix
1 parent 3aca699 commit 89b4d2d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from libs.base.application_models import ModelBaseSettings
2+
from pydantic import Field
23

34

45
class EnvConfiguration(ModelBaseSettings):
56
# APP_CONFIG_ENDPOINT
6-
app_config_endpoint: str
7+
app_config_endpoint: str = Field(default="https://example.com")

src/ContentProcessor/src/libs/process_host/handler_process_host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def add_handlers_as_process(
4040
}
4141
)
4242

43-
async def start_handler_processes(self):
43+
async def start_handler_processes(self, test_mode: bool = False):
4444
for handler in self.handlers:
4545
handler["handler_info"].handler.start()
4646

47-
while True:
47+
while not test_mode:
4848
for handler in self.handlers:
4949
handler["handler_info"].handler.join(timeout=1)
5050
if (

0 commit comments

Comments
 (0)