backport of commit 391502770c

pull/4429/head
Michael Li 2 years ago
parent 80025cce39
commit cbbcbe9b4a

@ -162,6 +162,6 @@ func TestCliTcpTargetConnectTargetWithSessionMaxSecondsRejectNew(t *testing.T) {
// Ensure that the session did not run for longer than the time limit
diff := end.Sub(start).Seconds()
require.Less(t, diff, float64(sessionMaxSeconds+1))
require.Less(t, diff, float64(sessionMaxSeconds+2))
require.Greater(t, diff, float64(sessionMaxSeconds-1))
}

Loading…
Cancel
Save