Skip to content

Commit ac5b81e

Browse files
committed
fix unit test
1 parent 30eb558 commit ac5b81e

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

scripts/ocsp-stapling.test

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -388,19 +388,8 @@ else
388388
echo 'skipping TLS1.3 stapling tests.' 1>&2
389389
fi
390390

391-
printf '%s\n\n' "------------- TEST CASE 1 SHOULD PASS ------------------------"
392-
# client test against our own server - GOOD CERT
393-
./examples/server/server -c certs/ocsp/server1-cert.pem -R "$ready_file2" \
394-
-k certs/ocsp/server1-key.pem -p $port3 &
395-
wolf_pid3=$!
396-
wait_for_readyFile "$ready_file2" $wolf_pid3 $port3
397-
./examples/client/client -C -A certs/ocsp/root-ca-cert.pem -W 1 -p $port3
398-
RESULT=$?
399-
[ $RESULT -ne 0 ] && printf '\n\n%s\n' "Client connection 1 failed" && exit 1
400-
printf '%s\n\n' "Test PASSED!"
401-
402391
# DTLS 1.2 and 1.3 cases
403-
if ./examples/client/client -? 2>&1 | grep -q 'DTLS'; then
392+
if ./examples/client/client -? 2>&1 | grep -q 'DTLSv1.2'; then
404393
printf '%s\n\n' "------------- TEST CASE DTLS-1 SHOULD PASS -------------------"
405394
# client test against our own server, must staple - GOOD CERT
406395
echo $ready_file2
@@ -415,7 +404,9 @@ if ./examples/client/client -? 2>&1 | grep -q 'DTLS'; then
415404
RESULT=$?
416405
[ $RESULT -ne 0 ] && printf '\n\n%s\n' "Client connection 5 failed" && exit 1
417406
printf '%s\n\n' "Test PASSED!"
407+
fi
418408

409+
if ./examples/client/client -? 2>&1 | grep -q 'DTLSv1.3'; then
419410
printf '%s\n\n' "------------- TEST CASE DTLS-2 SHOULD PASS -------------------"
420411
# client test against our own server, must staple - GOOD CERT
421412
./examples/server/server -c certs/ocsp/server1-cert.pem -R "$ready_file2" \

0 commit comments

Comments
 (0)