Browse code

Remove old testing stuff that slipped into master

Signed-off-by: Doug Davis <dug@us.ibm.com>

Doug Davis authored on 2015/04/23 03:44:54
Showing 1 changed files
... ...
@@ -3,15 +3,16 @@ package main
3 3
 import (
4 4
 	"net/http"
5 5
 	"strings"
6
-	"testing"
6
+
7
+	"github.com/go-check/check"
7 8
 )
8 9
 
9
-func TestInfoApi(t *testing.T) {
10
+func (s *DockerSuite) TestInfoApi(c *check.C) {
10 11
 	endpoint := "/info"
11 12
 
12 13
 	statusCode, body, err := sockRequest("GET", endpoint, nil)
13 14
 	if err != nil || statusCode != http.StatusOK {
14
-		t.Fatalf("Expected %d from info request, got %d", http.StatusOK, statusCode)
15
+		c.Fatalf("Expected %d from info request, got %d", http.StatusOK, statusCode)
15 16
 	}
16 17
 
17 18
 	// always shown fields
... ...
@@ -30,7 +31,7 @@ func TestInfoApi(t *testing.T) {
30 30
 	out := string(body)
31 31
 	for _, linePrefix := range stringsToCheck {
32 32
 		if !strings.Contains(out, linePrefix) {
33
-			t.Errorf("couldn't find string %v in output", linePrefix)
33
+			c.Errorf("couldn't find string %v in output", linePrefix)
34 34
 		}
35 35
 	}
36 36
 }