Skip to content

Commit

Permalink
oversight: code grooming
Browse files Browse the repository at this point in the history
  • Loading branch information
ucirello committed Jan 17, 2022
1 parent baabb14 commit ee0d6c5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,9 @@ func Test_childProcTimeout(t *testing.T) {
Start: func(ctx context.Context) error {
started <- struct{}{}
t.Log("started")
select {
case <-ctx.Done():
}
<-ctx.Done()
t.Log("tree stop signal received")
select {
case <-blockedCtx.Done():
}
<-blockedCtx.Done()
return nil
},
Shutdown: oversight.Timeout(2 * time.Second),
Expand Down

0 comments on commit ee0d6c5

Please sign in to comment.