nixosTests.prometheus-exporters.smartctl: fix type mismatch
The method wait_for_open_port used in the smartctl test expects an int but was given a string. Fix the same issue in the example in the comments.
This commit is contained in:
parent
8bee9fa117
commit
02e32729c3
@ -35,7 +35,7 @@ let
|
|||||||
* };
|
* };
|
||||||
* exporterTest = ''
|
* exporterTest = ''
|
||||||
* wait_for_unit("prometheus-<exporterName>-exporter.service")
|
* wait_for_unit("prometheus-<exporterName>-exporter.service")
|
||||||
* wait_for_open_port("1234")
|
* wait_for_open_port(1234)
|
||||||
* succeed("curl -sSf 'localhost:1234/metrics'")
|
* succeed("curl -sSf 'localhost:1234/metrics'")
|
||||||
* '';
|
* '';
|
||||||
* };
|
* };
|
||||||
@ -1063,7 +1063,7 @@ let
|
|||||||
};
|
};
|
||||||
exporterTest = ''
|
exporterTest = ''
|
||||||
wait_for_unit("prometheus-smartctl-exporter.service")
|
wait_for_unit("prometheus-smartctl-exporter.service")
|
||||||
wait_for_open_port("9633")
|
wait_for_open_port(9633)
|
||||||
wait_until_succeeds(
|
wait_until_succeeds(
|
||||||
"curl -sSf 'localhost:9633/metrics'"
|
"curl -sSf 'localhost:9633/metrics'"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user