fix(e2e): Add extra buffer in -session-max-seconds test again (#4440)

pull/4453/head
Michael Li 2 years ago committed by GitHub
parent 366d9e95aa
commit 694db71004
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -77,7 +77,7 @@ func TestCliTcpTargetConnectTargetWithSessionMaxSecondsTearDown(t *testing.T) {
// Ensure that the session did not run for longer than the time limit
// (plus a small buffer)
end := time.Since(start).Seconds()
require.Less(t, end, float64(sessionMaxSeconds+1))
require.Less(t, end, float64(sessionMaxSeconds+2))
require.Greater(t, end, float64(sessionMaxSeconds-1))
case <-time.After(time.Second * time.Duration(sessionMaxSeconds+5)):
t.Fatal("Timed out waiting for session command to exit")

Loading…
Cancel
Save