Skip to content

Commit aae325e

Browse files
yasinBursaliclaude
andcommitted
fix(tests): repair extension summary assertion in doctor diagnostics test
tests/test-doctor-extension-diagnostics.sh test #9 used grep -q "ext_total.*ext_healthy" which requires ext_total to appear FIRST on a single line. But scripts/dream-doctor.sh:364 emits "{ext_healthy}/{ext_total} healthy, {ext_issues} with issues" — ext_healthy comes first. The test has been permanently failing since the format was introduced. Switches to two chained order-independent substring greps, matching the idiom already used in the same file at test #7 (extensions_total + extensions_healthy + extensions_issues). Future-proof against either variable being reordered in the print statement. All 9 tests now pass (was 8/9 before). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d5154c3 commit aae325e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dream-server/tests/test-doctor-extension-diagnostics.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ else
8787
fi
8888

8989
# 9. Extension summary in output
90-
if grep -q "ext_total.*ext_healthy" "$ROOT_DIR/scripts/dream-doctor.sh"; then
90+
if grep -q "ext_total" "$ROOT_DIR/scripts/dream-doctor.sh" && \
91+
grep -q "ext_healthy" "$ROOT_DIR/scripts/dream-doctor.sh"; then
9192
pass "Extension summary output present"
9293
else
9394
fail "Extension summary output missing"

0 commit comments

Comments
 (0)