Skip to content

Commit ea5c4bd

Browse files
authored
Tests attempt to wait for snmpsim (librenms#20086)
* Tests attempt to wait for snmpsim Make sure snmpsim is started before we start running tests * whitespace
1 parent dbf34c5 commit ea5c4bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ jobs:
164164
name: Start SNMPSIM
165165
run: |
166166
.python_venvs/snmpsim/bin/snmpsim-command-responder-lite --data-dir=tests/snmpsim --agent-udpv4-endpoint=127.1.6.2:1162 --log-level=error --logging-method=file:/tmp/snmpsimd.log &
167+
# Wait for the UDP port to open / snmpsim to start
168+
timeout 10 bash -c 'until nc -z -u 127.1.6.2 1162; do sleep 0.1; done' || true
167169
168170
-
169171
name: lnms dev:check ci

0 commit comments

Comments
 (0)