func test: replaced one-shot bin/nc with a loop (#1542)
This commit is contained in:
parent
131ed1b0a7
commit
9c1c4093a3
|
@ -70,7 +70,7 @@ teardown() {
|
|||
@test "${FILE} local_api_credentials.yaml.local" {
|
||||
echo "{'api':{'server':{'listen_uri':127.0.0.1:8083}}}" > "${CONFIG_YAML}.local"
|
||||
run -0 ./instance-crowdsec start
|
||||
run -0 nc -z localhost 8083
|
||||
run -0 ./lib/util/wait-for-port -q 8083
|
||||
|
||||
run -0 yq e '.api.client.credentials_path' < "${CONFIG_YAML}"
|
||||
LOCAL_API_CREDENTIALS="${output}"
|
||||
|
|
Loading…
Reference in a new issue