Skip to content

Commit b188feb

Browse files
fix: minor fixes and improvements (#943)
1 parent b80232e commit b188feb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ ARG PYTHON_VERSION=3.11-slim
22

33
FROM python:$PYTHON_VERSION
44

5+
# Set shell with pipefail for safer pipe operations
6+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
7+
58
# Define where Poetry virtual environments will be stored
69
ARG POETRY_VIRTUALENVS_PATH=/opt/pypoetry/virtualenvs
710

locustfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
if os.getenv("MOCK_AGENT", "false").lower() != "true":
1313
raise ValueError(
14-
"MOCK_AGENT must be set to 'true' in .env.docker to run load tests. "
14+
"MOCK_AGENT must be set to 'true' in .env file to run load tests. "
1515
"This ensures the chatbot uses mock responses instead of making real API calls."
1616
)
1717

@@ -21,7 +21,7 @@
2121
if not chatbot_user_email or not chatbot_user_password:
2222
raise ValueError(
2323
"Add CHATBOT_USER_EMAIL and CHATBOT_USER_PASSWORD "
24-
"to .env.docker with valid chatbot user credentials."
24+
"to .env file with valid chatbot user credentials."
2525
)
2626

2727
MOCK_MESSAGE = "Qual a proporção de mulheres no mercado de trabalho formal?"

0 commit comments

Comments
 (0)