We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2514e commit bb8ca4aCopy full SHA for bb8ca4a
kubernetes/tests/scripts/test_mnist.sh
@@ -83,7 +83,8 @@ function check_cpu_cores {
83
sleep 60
84
break
85
fi
86
- if (( current_time - start_time >= max_wait_time )); then
+ current_time=$(date +%s)
87
+ if (( current_time - start_time >= $2 )); then
88
echo "Timeout waiting for metrics information to be available"
89
delete_minikube_cluster
90
exit 1
@@ -135,7 +136,7 @@ get_model_archive "https://torchserve.pytorch.org/mar_files/mnist_v2.mar" "mnist
135
136
deploy_cluster "./kubernetes/tests/configs/deployment.yaml" "ts-def"
137
138
echo "CPU usage test"
-check_cpu_cores "ts-def"
139
+check_cpu_cores "ts-def" 180
140
141
echo "MNIST test inference"
142
make_cluster_accessible "kubernetes/examples/mnist/service.yaml" 5
0 commit comments