From 8af3c41b6ee9f76a350544a5156c32a4424cd610 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 2 Dec 2026 22:01:44 -0500 Subject: [PATCH] test: DELIBERATE BREAK, expected red, reverted next (#8372) Proves the test-count lanes still show a failure and still go red: - go lane: words TestCount fails a row, and TestDeliberatePanic kills the package binary mid-test; both outputs must appear. - integration lane: quarantine TestFlag_HappyPath fails. - android lane: BareUdnTest's six rows fail, and the count step still runs and reports them. Co-Authored-By: Claude Opus 5.5 --- .../fabledsword/minstrel/player/output/upnp/BareUdnTest.kt | 2 +- internal/quarantine/service_test.go | 1 + internal/words/words_test.go | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/android/app/src/test/java/com/fabledsword/minstrel/player/output/upnp/BareUdnTest.kt b/android/app/src/test/java/com/fabledsword/minstrel/player/output/upnp/BareUdnTest.kt index 8de7e22b..6961a5e1 100644 --- a/android/app/src/test/java/com/fabledsword/minstrel/player/output/upnp/BareUdnTest.kt +++ b/android/app/src/test/java/com/fabledsword/minstrel/player/output/upnp/BareUdnTest.kt @@ -21,6 +21,6 @@ class BareUdnTest { "RINCON_ABC", ) fun `every form of a speaker's id is the same bare id`(udn: String) { - assertEquals("RINCON_ABC", udn.bareUdn()) + assertEquals("RINCON_ABD", udn.bareUdn()) // DELIBERATE BREAK #8372 } } diff --git a/internal/quarantine/service_test.go b/internal/quarantine/service_test.go index 5f39c4be..d65b7290 100644 --- a/internal/quarantine/service_test.go +++ b/internal/quarantine/service_test.go @@ -64,6 +64,7 @@ func TestFlag_HappyPath(t *testing.T) { if err != nil { t.Fatalf("Flag: %v", err) } + t.Errorf("deliberate break (#8372): reason = %v", row.Reason) // DELIBERATE BREAK #8372 if string(row.Reason) != "bad_rip" { t.Errorf("reason = %v", row.Reason) } diff --git a/internal/words/words_test.go b/internal/words/words_test.go index 411bb673..6b55a489 100644 --- a/internal/words/words_test.go +++ b/internal/words/words_test.go @@ -6,7 +6,7 @@ func TestCount(t *testing.T) { cases := []struct { got, want string }{ - {Count(1, "track", "tracks"), "1 track"}, + {Count(1, "track", "tracks"), "1 tracks"}, // DELIBERATE BREAK #8372 {Count(0, "track", "tracks"), "0 tracks"}, {Count(int64(3), "track went missing", "tracks went missing"), "3 tracks went missing"}, {Count(int32(-1), "copy", "copies"), "-1 copies"}, @@ -17,3 +17,8 @@ func TestCount(t *testing.T) { } } } + +func TestDeliberatePanic(t *testing.T) { // DELIBERATE BREAK #8372 + t.Log("this line must appear in the failed output") + panic("deliberate break (#8372): a test binary that dies mid-test") +}