support unset GOPATH in Go 1.8 in integrationtests

fixes #415
This commit is contained in:
Marten Seemann
2017-02-18 13:40:28 +07:00
parent 0d6647ed8c
commit bd452b35ca
5 changed files with 14 additions and 36 deletions

View File

@@ -3,9 +3,7 @@ package integrationtests
import (
"bytes"
"fmt"
"os"
"os/exec"
"runtime"
"strconv"
"time"
@@ -28,12 +26,6 @@ var _ = Describe("non-zero RTT", func() {
runRTTTest := func(rtt time.Duration, version protocol.VersionNumber) {
proxyPort := 12345
clientPath := fmt.Sprintf(
"%s/src/github.com/lucas-clemente/quic-clients/client-%s-debug",
os.Getenv("GOPATH"),
runtime.GOOS,
)
iPort, _ := strconv.Atoi(port)
var err error
rttProxy, err = proxy.NewUDPProxy(proxyPort, "localhost", iPort, nil, nil, rtt, rtt)