Skip to content

Commit c465187

Browse files
cvclaude
andcommitted
fix: Remove t.Parallel() from time-sensitive TestFormatRelativeTime subtests
The subtests depend on time.Now() being consistent between test setup and execution. Running them in parallel causes timing drift that breaks the "less than one second" test case. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 614567a commit c465187

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

internal/cli/status_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,6 @@ func TestFormatRelativeTime(t *testing.T) {
12611261

12621262
for _, tt := range tests {
12631263
t.Run(tt.name, func(t *testing.T) {
1264-
t.Parallel()
12651264
result := formatRelativeTime(tt.time)
12661265
assert.Equal(t, tt.expected, result)
12671266
})

0 commit comments

Comments
 (0)