Skip to content

Commit c7e8896

Browse files
maks2134ndeloof
authored andcommitted
Fix forbidigo linting error
- Replace context.Background() with t.Context() in TestDoneDeadlockFix - Ensures .idea files are not included in commit Signed-off-by: maks2134 <maks210306@yandex.by>
1 parent e3fcdb8 commit c7e8896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/display/tty_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func TestLenAnsi(t *testing.T) {
427427
func TestDoneDeadlockFix(t *testing.T) {
428428
w, _ := newTestWriter()
429429
addTask(w, "test-task", "Working", "details", api.Working)
430-
ctx, cancel := context.WithCancel(context.Background())
430+
ctx, cancel := context.WithCancel(t.Context())
431431
defer cancel()
432432

433433
w.Start(ctx, "test")

0 commit comments

Comments
 (0)