From 262d86695675128934725a10750e013b7c8632b3 Mon Sep 17 00:00:00 2001 From: seizeh Date: Thu, 23 Jul 2026 12:12:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20t11=20=ED=8D=BC=EB=84=90=20=EB=8B=A8?= =?UTF-8?q?=EC=96=B8=20=EC=8B=9C=EB=93=9C=20=EC=8A=A4=EC=BD=94=ED=94=84=20?= =?UTF-8?q?+=20=EB=9F=AC=EB=84=88=20'not=20ok'=20=EC=84=A0=ED=96=89=20?= =?UTF-8?q?=EA=B3=B5=EB=B0=B1=20=EA=B0=90=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - t11 report_issued count 를 시드 사용자로 스코프 — 운영 실데이터 (실기기 발행 2건)와 공존 가능하게(테스트 자급자족 원칙) - run_db_tests.sh: psql 컬럼 정렬이 'not ok' 앞에 공백을 붙여 ^not ok 그렙이 실패를 놓치던 구멍(거짓 ✅) — ^[[:space:]]* 허용 Co-Authored-By: Claude Fable 5 --- scripts/run_db_tests.sh | 2 +- supabase/tests/t11_care_reports_test.sql | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/run_db_tests.sh b/scripts/run_db_tests.sh index 4f5c1e0..9a6a3e9 100755 --- a/scripts/run_db_tests.sh +++ b/scripts/run_db_tests.sh @@ -23,7 +23,7 @@ for f in supabase/tests/*_test.sql; do continue fi echo "$out" - if grep -q '^not ok' <<<"$out"; then + if grep -qE '^[[:space:]]*not ok' <<<"$out"; then echo "-- 단언 실패: $f" fail=1 fi diff --git a/supabase/tests/t11_care_reports_test.sql b/supabase/tests/t11_care_reports_test.sql index 8685e25..ec40f09 100644 --- a/supabase/tests/t11_care_reports_test.sql +++ b/supabase/tests/t11_care_reports_test.sql @@ -35,7 +35,9 @@ select is( '공유 링크 생성' ); select is( - (select count(*)::int from app.funnel_events where event = 'report_issued'), + (select count(*)::int from app.funnel_events + where event = 'report_issued' + and user_id = (select id from seed where k='bizowner')), 1, '발행 퍼널 이벤트 기록' );