Skip to content

Commit ee0d6c5

Browse files
committed
oversight: code grooming
1 parent baabb14 commit ee0d6c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tree_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,9 @@ func Test_childProcTimeout(t *testing.T) {
472472
Start: func(ctx context.Context) error {
473473
started <- struct{}{}
474474
t.Log("started")
475-
select {
476-
case <-ctx.Done():
477-
}
475+
<-ctx.Done()
478476
t.Log("tree stop signal received")
479-
select {
480-
case <-blockedCtx.Done():
481-
}
477+
<-blockedCtx.Done()
482478
return nil
483479
},
484480
Shutdown: oversight.Timeout(2 * time.Second),

0 commit comments

Comments
 (0)