diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-12-29 13:33:25 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-12-29 13:50:17 +0100 |
commit | dba49a43a08eb3b384c37a0ccb94530d6d974158 (patch) | |
tree | b91bb00d47485e3cae658bad28d684d82ae64d85 /nixos/doc/manual/development | |
parent | 904f07f5950a31bae7990c5d6ba94f0d2c148004 (diff) |
nixos/test-driver: add optional address arg to wait_for_{open,closed}_port
This is useful for testing servers configured to listen on specific addresses.
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r-- | nixos/doc/manual/development/writing-nixos-tests.section.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/doc/manual/development/writing-nixos-tests.section.md b/nixos/doc/manual/development/writing-nixos-tests.section.md index 0d5bc76a2aa57..5bcdf6e58eb17 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.section.md +++ b/nixos/doc/manual/development/writing-nixos-tests.section.md @@ -273,12 +273,13 @@ The following methods are available on machine objects: `wait_for_open_port` -: Wait until a process is listening on the given TCP port (on - `localhost`, at least). +: Wait until a process is listening on the given TCP port and IP address + (default `localhost`). `wait_for_closed_port` -: Wait until nobody is listening on the given TCP port. +: Wait until nobody is listening on the given TCP port and IP address + (default `localhost`). `wait_for_x` |