Skip to content

Commit 73bfad6

Browse files
committed
dynamic-config-fs: Add wait_for to resolve flake
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent da44185 commit 73bfad6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

dynamic-config-fs/verify.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ chmod go+rx configs
1212
. "$(dirname "${BASH_SOURCE[0]}")/../verify-common.sh"
1313

1414
run_log "Check for response comes from service1 upstream"
15-
curl -s "http://localhost:${PORT_PROXY}" \
16-
| jq -r '.hostname' \
17-
| grep service1
15+
wait_for 10 sh -c "\
16+
curl -s \"http://localhost:${PORT_PROXY}\" \
17+
| jq -r '.hostname' \
18+
| grep service1"
1819

1920
run_log "Check config for active clusters pointing to service1"
2021
curl -s "http://localhost:${PORT_ADMIN}/config_dump" \

0 commit comments

Comments
 (0)