do not cancel in flight tests requests in bench

This commit is contained in:
Sasha Klizhentas 2017-06-22 03:22:47 -07:00
parent 4003f3ce04
commit 3a9d55fa4e

View file

@ -167,7 +167,10 @@ type benchmarkThread struct {
func (b *benchmarkThread) execute(measure *benchMeasure) {
if !b.interactive {
measure.Error = b.client.SSH(b.ctx, nil, false)
// do not use parent context that will cancel in flight requests
// because we give test some time to gracefully wrap up
// the in-flight connections to avoid extra errors
measure.Error = b.client.SSH(context.TODO(), nil, false)
measure.End = time.Now()
b.sendMeasure(measure)
return