From 478cdc0742ece77d443de2e8642dcb1a059029c3 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 13 May 2016 13:41:53 +0200 Subject: tests: simplified server launching process Also attempt to use a new port on every started server and added a waiting period for the port to become re-usable. --- tests/suite/mini-eagain2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/suite/mini-eagain2.c') diff --git a/tests/suite/mini-eagain2.c b/tests/suite/mini-eagain2.c index 5fabb982cd..cf0ea5ec4b 100644 --- a/tests/suite/mini-eagain2.c +++ b/tests/suite/mini-eagain2.c @@ -68,7 +68,7 @@ static const char */ static int tcp_connect(void) { - const char *PORT = "5445"; + const char *PORT = getenv("PORT"); const char *SERVER = "127.0.0.1"; //verisign.com int err, sd; int flag = 1, curstate = 0; -- cgit v1.2.1