open chatqna frontend test (#1594)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2025-03-04 10:41:22 +08:00
committed by GitHub
parent e4de76da78
commit 8f8d3af7c3
3 changed files with 5 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ function validate_service() {
function validate_microservices() {
# Check if the microservices are running correctly.
sleep 10m
sleep 3m
# tei for embedding service
validate_service \
@@ -111,8 +111,6 @@ function validate_microservices() {
"tei-embedding-server" \
'{"inputs":"What is Deep Learning?"}'
sleep 1m # retrieval can't curl as expected, try to wait for more time
# retrieval microservice
test_embedding=$(python3 -c "import random; embedding = [random.uniform(-1, 1) for _ in range(768)]; print(embedding)")
validate_service \
@@ -196,7 +194,7 @@ function main() {
validate_microservices
validate_megaservice
# validate_frontend
validate_frontend
stop_docker
echo y | docker system prune