nixos/tests/grafana-agent: update port

We now don't explicitly configure a self-chosen port, but use the
default port choosen by grafana, 12345.
This commit is contained in:
Florian Klink 2022-06-19 12:23:06 +02:00
parent 5f297c164e
commit 8b926cad93

View file

@ -23,9 +23,9 @@ import ./make-test-python.nix ({ lib, pkgs, ... }:
with subtest("Grafana-agent is running"):
machine.wait_for_unit("grafana-agent.service")
machine.wait_for_open_port(9090)
machine.wait_for_open_port(12345)
machine.succeed(
"curl -sSfN http://127.0.0.1:9090/-/healthy"
"curl -sSfN http://127.0.0.1:12345/-/healthy"
)
machine.shutdown()
'';