nixos/test/prometheus-exporters/bird: fix race condition
The bird socket would not always be instantly present, when the exporter was queried, leading to the test sometimes failing in its entirety.
This commit is contained in:
parent
dcdf30a78a
commit
65234f0911
@ -132,7 +132,9 @@ let
|
||||
exporterTest = ''
|
||||
wait_for_unit("prometheus-bird-exporter.service")
|
||||
wait_for_open_port(9324)
|
||||
succeed("curl -sSf http://localhost:9324/metrics | grep -q 'MyObviousTestString'")
|
||||
wait_until_succeeds(
|
||||
"curl -sSf http://localhost:9324/metrics | grep -q 'MyObviousTestString'"
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user