We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a20cee commit 2516035Copy full SHA for 2516035
utils/subprocess/executor_test.go
@@ -397,6 +397,7 @@ func TestExecute(t *testing.T) {
397
}
398
399
func TestStart(t *testing.T) {
400
+
401
currentDir, err := os.Getwd()
402
require.NoError(t, err)
403
@@ -428,7 +429,7 @@ func TestStart(t *testing.T) {
428
429
430
for _, test := range tests {
431
t.Run(test.name, func(t *testing.T) {
- // defer goleak.VerifyNone(t)
432
+ defer goleak.VerifyNone(t)
433
434
customIO := newTestIO()
435
executors := []struct {
@@ -460,7 +461,9 @@ func TestStart(t *testing.T) {
460
461
462
463
require.NotNil(t, p)
464
+ defer func() { _ = p.Stop() }()
465
require.NoError(t, p.Wait(context.Background()))
466
+ p.Cancel()
467
})
468
469
0 commit comments