Skip to content

Commit b792d3c

Browse files
committed
Rework tests
1 parent 426059f commit b792d3c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/test.bats

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ setup() {
1212
}
1313

1414
health_checks() {
15-
# A workaround for the error:
16-
# Ingester not ready: waiting for 15s after being ready
17-
sleep 15
18-
1915
# Grafana service
2016
ddev exec "curl -s http://grafana:3000/api/health"
2117

2218
# Loki service
23-
ddev exec "curl -s http://loki:3100/ready"
24-
ddev exec "curl -s http://localhost:3100/ready"
19+
# Loki takes 15+ secs to initialize, so use the http://tempo:loki/ready url
20+
# is not a good idea, just checking the metrics endpoint.
21+
ddev exec "curl -s http://loki:3100/metrics"
22+
ddev exec "curl -s http://localhost:3100/metrics"
2523

2624
# Prometeus service
2725
ddev exec "curl -s http://prometheus:9090/-/ready"

0 commit comments

Comments
 (0)