add QUIC 39 to supported versions

The Chrome installed on Travis doesn't support QUIC 39 yet.
This commit is contained in:
Marten Seemann
2017-08-11 09:40:10 +07:00
parent 6bdd782a4b
commit 2b683be36a
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package chrome_test
import (
"fmt"
"os"
"github.com/lucas-clemente/quic-go/protocol"
@@ -16,6 +17,9 @@ var _ = Describe("Chrome tests", func() {
supportedVersionsBefore := protocol.SupportedVersions
BeforeEach(func() {
if version == protocol.Version39 && os.Getenv("TRAVIS") == "true" {
Skip("The chrome version running on Travis doesn't support QUIC 39 yet.")
}
protocol.SupportedVersions = []protocol.VersionNumber{version}
})