2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-09-20 02:55:46 +08:00
This commit is contained in:
Tamir Duberstein 2016-02-21 12:57:37 -05:00
parent b5e73ea381
commit 5746da9df6

View File

@ -116,22 +116,7 @@ func TestAny(t *testing.T) {
}
}()
r, err := http.Get("http://" + l.Addr().String())
if err != nil {
t.Fatal(err)
}
defer func() {
if err := r.Body.Close(); err != nil {
t.Log(err)
}
}()
b, err := ioutil.ReadAll(r.Body)
if err != nil {
t.Error(err)
}
if string(b) != testHTTP1Resp {
t.Errorf("invalid response: want=%s got=%s", testHTTP1Resp, b)
}
runTestHTTP1Client(t, l.Addr())
}
func TestHTTPGoRPC(t *testing.T) {