Skip to content

Commit bb8ca4a

Browse files
committed
Kubernetes nightly tests
1 parent 5c2514e commit bb8ca4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kubernetes/tests/scripts/test_mnist.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function check_cpu_cores {
8383
sleep 60
8484
break
8585
fi
86-
if (( current_time - start_time >= max_wait_time )); then
86+
current_time=$(date +%s)
87+
if (( current_time - start_time >= $2 )); then
8788
echo "Timeout waiting for metrics information to be available"
8889
delete_minikube_cluster
8990
exit 1
@@ -135,7 +136,7 @@ get_model_archive "https://torchserve.pytorch.org/mar_files/mnist_v2.mar" "mnist
135136
deploy_cluster "./kubernetes/tests/configs/deployment.yaml" "ts-def"
136137

137138
echo "CPU usage test"
138-
check_cpu_cores "ts-def"
139+
check_cpu_cores "ts-def" 180
139140

140141
echo "MNIST test inference"
141142
make_cluster_accessible "kubernetes/examples/mnist/service.yaml" 5

0 commit comments

Comments
 (0)