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

@@ -38,6 +38,7 @@ var (
nFilesUploaded int32 // should be used atomically
testEndpointCalled utils.AtomicBool
doneCalled utils.AtomicBool
version protocol.VersionNumber
)
func TestChrome(t *testing.T) {
@@ -88,7 +89,9 @@ func init() {
})
}
var _ = JustBeforeEach(testserver.StartQuicServer)
var _ = JustBeforeEach(func() {
testserver.StartQuicServer([]protocol.VersionNumber{version})
})
var _ = AfterEach(func() {
testserver.StopQuicServer()