mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
do not cancel in flight tests requests in bench
This commit is contained in:
parent
4003f3ce04
commit
3a9d55fa4e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue