Skip to content

Commit

Permalink
バックグラウンドのキャンセルコンテキスト変更
Browse files Browse the repository at this point in the history
  • Loading branch information
chibiegg authored Oct 5, 2019
1 parent 8f6c11f commit bb9992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/cmd/bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ var run = cli.Command{
benchCtx, cancel := context.WithTimeout(context.Background(), config.BenchmarkTimeout)
defer cancel()

bgCtx, bgCancel := context.WithTimeout(ctx, 3*time.Second)
bgCtx, bgCancel := context.WithCancel(ctx)
bgtester, err := newBgTester()
if err != nil {
dumpFailedResult(uniqueMsgs(bencherror.BenchmarkErrs.Msgs))
Expand Down

0 comments on commit bb9992d

Please sign in to comment.