forked from quic-go/quic-go
save version numbers such that can be written in big endian
This makes the version number representation consistent with the IETF draft.
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/integrationtests/tools/testserver"
|
||||
@@ -26,7 +25,7 @@ var _ = Describe("Integration tests", func() {
|
||||
It("gets a simple file", func() {
|
||||
command := exec.Command(
|
||||
clientPath,
|
||||
"--quic-version="+strconv.Itoa(int(version)),
|
||||
"--quic-version="+version.ToAltSvc(),
|
||||
"--host=127.0.0.1",
|
||||
"--port="+testserver.Port(),
|
||||
"https://quic.clemente.io/hello",
|
||||
@@ -42,7 +41,7 @@ var _ = Describe("Integration tests", func() {
|
||||
It("posts and reads a body", func() {
|
||||
command := exec.Command(
|
||||
clientPath,
|
||||
"--quic-version="+strconv.Itoa(int(version)),
|
||||
"--quic-version="+version.ToAltSvc(),
|
||||
"--host=127.0.0.1",
|
||||
"--port="+testserver.Port(),
|
||||
"--body=foo",
|
||||
@@ -59,7 +58,7 @@ var _ = Describe("Integration tests", func() {
|
||||
It("gets a file", func() {
|
||||
command := exec.Command(
|
||||
clientPath,
|
||||
"--quic-version="+strconv.Itoa(int(version)),
|
||||
"--quic-version="+version.ToAltSvc(),
|
||||
"--host=127.0.0.1",
|
||||
"--port="+testserver.Port(),
|
||||
"https://quic.clemente.io/prdata",
|
||||
@@ -80,7 +79,7 @@ var _ = Describe("Integration tests", func() {
|
||||
defer GinkgoRecover()
|
||||
command := exec.Command(
|
||||
clientPath,
|
||||
"--quic-version="+strconv.Itoa(int(version)),
|
||||
"--quic-version="+version.ToAltSvc(),
|
||||
"--host=127.0.0.1",
|
||||
"--port="+testserver.Port(),
|
||||
"https://quic.clemente.io/prdata",
|
||||
|
||||
Reference in New Issue
Block a user