use the quic.Config to set the QUIC version in the Chrome tests

This commit is contained in:
Marten Seemann
2017-08-23 10:20:56 +07:00
parent 5751b599ee
commit 17a0541edb
5 changed files with 17 additions and 12 deletions

View File

@@ -11,20 +11,13 @@ import (
var _ = Describe("Chrome tests", func() {
for i := range protocol.SupportedVersions {
version := protocol.SupportedVersions[i]
version = protocol.SupportedVersions[i]
Context(fmt.Sprintf("with quic version %d", version), 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}
})
AfterEach(func() {
protocol.SupportedVersions = supportedVersionsBefore
})
It("downloads a small file", func() {