From d94fdaf92d7c66c012e819c73632be16f346b66f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 2 Apr 2026 21:54:05 +0300 Subject: task 00p: add -race to default test task; add t.Parallel() to safe unit tests - Enable -race flag on the default 'task test' command so race conditions are caught by default, not only when running 'task test-race' - Add t.Parallel() to all tests in internal/image/prompt_test.go (pure function tests with no shared state) - Add t.Parallel() to TestReadBatchFile and its subtests in batch package (file I/O with t.TempDir(), no global state) - Add t.Parallel() to TestValidateBulgarianText and its subtests in audio package (pure string validation, no shared state) Co-Authored-By: Claude Sonnet 4.6 --- internal/audio/validate_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/audio') diff --git a/internal/audio/validate_test.go b/internal/audio/validate_test.go index 7bc3c9e..4b3392f 100644 --- a/internal/audio/validate_test.go +++ b/internal/audio/validate_test.go @@ -6,6 +6,7 @@ import ( ) func TestValidateBulgarianText(t *testing.T) { + t.Parallel() tests := []struct { name string text string @@ -50,6 +51,7 @@ func TestValidateBulgarianText(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + t.Parallel() err := ValidateBulgarianText(tt.text) if (err != nil) != tt.wantErr { t.Errorf("ValidateBulgarianText() error = %v, wantErr %v", err, tt.wantErr) -- cgit v1.2.3