mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: fixes in test-cookie-invalidation
This commit is contained in:
@@ -57,7 +57,6 @@ echo "Terminating and connecting again with same cookie... "
|
||||
#( echo "test" | $OPENCONNECT -q localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
# fail $PID "Could not connect to server"
|
||||
echo "test" | $OPENCONNECT -q localhost:$PORT -b -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --script=/bin/true --verbose --pid-file ${srcdir}/pid2.$$ --background >/dev/null 2>&1
|
||||
CPID=$!
|
||||
|
||||
sleep 4
|
||||
|
||||
@@ -86,7 +85,6 @@ fi
|
||||
|
||||
rm -f ${srcdir}/pid1.$$ ${srcdir}/pid2.$$
|
||||
|
||||
kill $CPID >/dev/null 2>&1
|
||||
kill $PID
|
||||
wait
|
||||
|
||||
|
||||
Reference in New Issue
Block a user