mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
Fix forbidigo linting error
- Replace context.Background() with t.Context() in TestDoneDeadlockFix - Ensures .idea files are not included in commit Signed-off-by: maks2134 <[email protected]>
This commit is contained in:
committed by
Nicolas De loof
parent
e3fcdb8238
commit
c7e8896360
@@ -427,7 +427,7 @@ func TestLenAnsi(t *testing.T) {
|
||||
func TestDoneDeadlockFix(t *testing.T) {
|
||||
w, _ := newTestWriter()
|
||||
addTask(w, "test-task", "Working", "details", api.Working)
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
defer cancel()
|
||||
|
||||
w.Start(ctx, "test")
|
||||
|
||||
Reference in New Issue
Block a user