Skip to content

Commit e4ad479

Browse files
committed
Fix e2e test
1 parent dea6d70 commit e4ad479

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ function install-npd() {
7979
echo "Starting NPD systemd service."
8080
systemctl daemon-reload
8181
systemctl start node-problem-detector.service
82+
83+
# Wait for Prometheus
84+
while ! --output /dev/null --silent --head --fail http://localhost:20257/metrics; do
85+
sleep 1 && echo -n .
86+
done
8287
}
8388

8489
function main() {

0 commit comments

Comments
 (0)