fix flaky drop tests by working around the div-nonce type byte issue

hopefully fixes #243
This commit is contained in:
Lucas Clemente
2016-08-05 11:27:41 +02:00
parent 62b06a003c
commit 095f32ec53
2 changed files with 11 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ var _ = Describe("Drop Proxy", func() {
"https://quic.clemente.io/data",
)
session, err := Start(command, nil, GinkgoWriter)
session, err := Start(command, GinkgoWriter, GinkgoWriter)
Expect(err).NotTo(HaveOccurred())
defer session.Kill()
Eventually(session, 4).Should(Exit(0))
@@ -61,7 +61,7 @@ var _ = Describe("Drop Proxy", func() {
Context(fmt.Sprintf("with quic version %d", version), func() {
Context("dropping every 4th packet after the crypto handshake", func() {
dropper := func(p protocol.PacketNumber) bool {
if p <= 5 { // don't interfere with the crypto handshake
if p <= 10 { // don't interfere with the crypto handshake
return false
}
return p%4 == 0