mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove old testing stuff that slipped into master
Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
parent
ccbb93e1cd
commit
b4988d8d75
1 changed files with 5 additions and 4 deletions
|
@ -3,15 +3,16 @@ package main
|
|||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/go-check/check"
|
||||
)
|
||||
|
||||
func TestInfoApi(t *testing.T) {
|
||||
func (s *DockerSuite) TestInfoApi(c *check.C) {
|
||||
endpoint := "/info"
|
||||
|
||||
statusCode, body, err := sockRequest("GET", endpoint, nil)
|
||||
if err != nil || statusCode != http.StatusOK {
|
||||
t.Fatalf("Expected %d from info request, got %d", http.StatusOK, statusCode)
|
||||
c.Fatalf("Expected %d from info request, got %d", http.StatusOK, statusCode)
|
||||
}
|
||||
|
||||
// always shown fields
|
||||
|
@ -30,7 +31,7 @@ func TestInfoApi(t *testing.T) {
|
|||
out := string(body)
|
||||
for _, linePrefix := range stringsToCheck {
|
||||
if !strings.Contains(out, linePrefix) {
|
||||
t.Errorf("couldn't find string %v in output", linePrefix)
|
||||
c.Errorf("couldn't find string %v in output", linePrefix)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue