Fix linting issues in tty_test.go

- Replace context.Background() with context.WithCancel() in test
- Fix formatting issues (remove extra empty line)

Signed-off-by: maks2134 <maks210306@yandex.by>
This commit is contained in:
maks2134 2026-03-17 12:09:33 +03:00 committed by Nicolas De loof
parent b7d1c62ec7
commit e3fcdb8238

View file

@ -429,7 +429,7 @@ func TestDoneDeadlockFix(t *testing.T) {
addTask(w, "test-task", "Working", "details", api.Working)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
w.Start(ctx, "test")
done := make(chan bool)
go func() {