fix flaky proxy tests

fixes #250
This commit is contained in:
Marten Seemann
2016-08-05 00:16:26 +07:00
parent 99d4e36a56
commit 61454ac85f
3 changed files with 69 additions and 39 deletions

View File

@@ -60,7 +60,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 proxy.PacketNumber) bool {
dropper := func(p protocol.PacketNumber) bool {
if p <= 5 { // don't interfere with the crypto handshake
return false
}