add QUIC 37 to supported versions

fixes #375
Chrome tests are disabled for QUIC 37, since the Chrome version in the
docker image doesn’t support this version yet.
This commit is contained in:
Marten Seemann
2017-04-27 18:32:28 +07:00
parent 3c223b22a2
commit 0a2c37d42a
5 changed files with 25 additions and 22 deletions

View File

@@ -45,12 +45,7 @@ func init() {
var _ = Describe("Chrome tests", func() {
It("does not work with mismatching versions", func() {
versionForUs := protocol.SupportedVersions[0]
versionForChrome := protocol.SupportedVersions[len(protocol.SupportedVersions)-1]
// If both are equal, this test doesn't make any sense.
if versionForChrome == versionForUs {
return
}
versionForChrome := protocol.SupportedVersions[1]
supportedVersionsBefore := protocol.SupportedVersions
protocol.SupportedVersions = []protocol.VersionNumber{versionForUs}
@@ -78,6 +73,9 @@ var _ = Describe("Chrome tests", func() {
)
BeforeEach(func() {
if version == protocol.Version37 {
Skip("Skipping Chrome test with QUIC version 37")
}
supportedVersionsBefore = protocol.SupportedVersions
protocol.SupportedVersions = []protocol.VersionNumber{version}
wd = getWebdriverForVersion(version)