Skip to content

Commit

Permalink
tests: s/iotuil/ioutil/ typo
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <srenatus@chef.io>
  • Loading branch information
srenatus committed Oct 11, 2018
1 parent 0a52bbd commit 29ee451
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
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

0 comments on commit 29ee451

Please sign in to comment.