diff --git a/__tests__/ci.test.js b/__tests__/ci.test.js index ec83a05..abb9601 100644 --- a/__tests__/ci.test.js +++ b/__tests__/ci.test.js @@ -98,8 +98,9 @@ describe("CI workflow", () => { // The detector itself, through the same comment stripping as `ciCode`. // Anchored at the start of the line again, it would miss the flow mapping, - // the quoted key and the anchor; with a colon required after the word, the - // anchor. + // the quoted key and the anchor; with a colon required right after the word, + // the quoted key and the anchor; with a closing quote allowed before that + // colon, the anchor alone. test.each([ ["a block key", " - name: x\n run: npm test\n continue-on-error: true"], ["a list item", " - continue-on-error: true\n run: npm test"], diff --git a/scripts/boot-from-copy.sh b/scripts/boot-from-copy.sh index fa6edae..29b4b5a 100644 --- a/scripts/boot-from-copy.sh +++ b/scripts/boot-from-copy.sh @@ -72,8 +72,8 @@ CMD_SH=$(printf '%s' "$CMD_LINE" | node -e ' # check a server we never started. So refuse up front: the port counts as free # only when curl gets "connection refused" (exit 7). Any other exit — an HTTP # answer (0), a listener that accepts and stalls (28), a non-HTTP service -# (52, 56) — means it is taken. No proxy answers in the port's place: NO_PROXY -# is exported at the top. +# (52, 56) — means it is taken. No proxy answers in the port's place: no_proxy +# and NO_PROXY are exported at the top. command -v curl >/dev/null 2>&1 || fail "curl is required" RC=0 curl -s -o /dev/null --max-time 2 "http://127.0.0.1:$PORT/" || RC=$?