Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: s/iotuil/ioutil/ typo #775

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 16 additions & 16 deletions examples/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func testEcho(t *testing.T, port int, contentType string) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -113,7 +113,7 @@ func testEchoOneof(t *testing.T, port int, contentType string) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -146,7 +146,7 @@ func testEchoOneof1(t *testing.T, port int, contentType string) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -179,7 +179,7 @@ func testEchoOneof2(t *testing.T, port int, contentType string) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -219,7 +219,7 @@ func testEchoBody(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -301,7 +301,7 @@ func testABECreate(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -387,7 +387,7 @@ func testABECreateBody(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -473,7 +473,7 @@ func testABEBulkCreate(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -512,7 +512,7 @@ func testABELookup(t *testing.T, port int) {
defer cresp.Body.Close()
buf, err := ioutil.ReadAll(cresp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(cresp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(cresp.Body) failed with %v; want success", err)
return
}
if got, want := cresp.StatusCode, http.StatusOK; got != want {
Expand Down Expand Up @@ -818,7 +818,7 @@ func testAdditionalBindings(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success; i=%d", err, i)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success; i=%d", err, i)
return
}
if got, want := resp.StatusCode, http.StatusOK; got != want {
Expand Down Expand Up @@ -937,7 +937,7 @@ func testABERepeated(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -987,7 +987,7 @@ func TestErrorWithDetails(t *testing.T) {

buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Fatalf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Fatalf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
}

if got, want := resp.StatusCode, http.StatusInternalServerError; got != want {
Expand Down Expand Up @@ -1062,7 +1062,7 @@ func TestUnknownPath(t *testing.T) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand All @@ -1082,7 +1082,7 @@ func TestMethodNotAllowed(t *testing.T) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand All @@ -1102,7 +1102,7 @@ func TestInvalidArgument(t *testing.T) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -1131,7 +1131,7 @@ func testResponseBody(t *testing.T, port int) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down
4 changes: 2 additions & 2 deletions examples/integration/proto_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func TestUnknownPathWithProtoError(t *testing.T) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down Expand Up @@ -180,7 +180,7 @@ func TestMethodNotAllowedWithProtoError(t *testing.T) {
defer resp.Body.Close()
buf, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Errorf("iotuil.ReadAll(resp.Body) failed with %v; want success", err)
t.Errorf("ioutil.ReadAll(resp.Body) failed with %v; want success", err)
return
}

Expand Down