Skip to content

Commit df79271

Browse files
Update LOG_WITHOUT_NEWLINE test to expect 4 lines
With the in-memory certificate generation, the startup now prints an additional line "Generating self-signed certificate in memory..." before the "Listening on ports..." message. This changes the expected line count from 3 to 4 for the LOG_WITHOUT_NEWLINE test: 1. Generating self-signed certificate in memory... 2. Listening on ports 8080 for http, and 8443 for https. 3. JSON echo output (single line due to LOG_WITHOUT_NEWLINE) 4. Morgan access log Co-Authored-By: Willy Guggenheim <willy@gugcorp.com>
1 parent 3828fd0 commit df79271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ docker run -d --rm -e LOG_WITHOUT_NEWLINE=1 --name http-echo-tests -p 8080:8080
416416
sleep 5
417417
curl -s -k -X POST -d "tiramisu" https://localhost:8443/ > /dev/null
418418

419-
if [ $(docker logs http-echo-tests | wc -l) == 3 ] && \
419+
if [ $(docker logs http-echo-tests | wc -l) == 4 ] && \
420420
[ $(docker logs http-echo-tests | grep tiramisu) ]
421421
then
422422
passed "LOG_WITHOUT_NEWLINE logged output in single line"

0 commit comments

Comments
 (0)