Skip to content

Commit 157f3a8

Browse files
committed
Increase timeout for test
1 parent 26670e5 commit 157f3a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

prometheus/test.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
docker run --name prometheus -d -p 9090:9090 prometheus
2-
Start-Sleep -Seconds 5
2+
Start-Sleep -Seconds 10
3+
4+
docker logs prometheus
5+
36
$req = Invoke-WebRequest http://$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' prometheus):9090/graph -UseBasicParsing
47
$code = $req.statuscode
58
$content = $req.content
69
if($code -ne 200 -or !($content.Contains('prometheus.io'))){
710
throw "Prometheus test failed!"
811
}
9-
docker logs prometheus

0 commit comments

Comments
 (0)