forked from quic-go/quic-go
increase RTT and time constraints in handshake RTT tests
This commit is contained in:
@@ -25,7 +25,7 @@ var _ = Describe("Handshake integration tets", func() {
|
|||||||
testStartedAt time.Time
|
testStartedAt time.Time
|
||||||
)
|
)
|
||||||
|
|
||||||
rtt := 300 * time.Millisecond
|
rtt := 350 * time.Millisecond
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
serverConfig = &quic.Config{TLSConfig: testdata.GetTLSConfig()}
|
serverConfig = &quic.Config{TLSConfig: testdata.GetTLSConfig()}
|
||||||
@@ -62,7 +62,7 @@ var _ = Describe("Handshake integration tets", func() {
|
|||||||
expectedDuration := time.Duration(num) * rtt
|
expectedDuration := time.Duration(num) * rtt
|
||||||
Expect(testDuration).To(SatisfyAll(
|
Expect(testDuration).To(SatisfyAll(
|
||||||
BeNumerically(">=", expectedDuration),
|
BeNumerically(">=", expectedDuration),
|
||||||
BeNumerically("<", expectedDuration+rtt/3),
|
BeNumerically("<", expectedDuration+rtt/2),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user