Solomon Hykes authored on 2013/11/14 15:11:28
Showing 6 changed files
... ...
@@ -4,8 +4,6 @@ import (
4 4
 	"testing"
5 5
 )
6 6
 
7
-
8
-
9 7
 func TestParseLxcConfOpt(t *testing.T) {
10 8
 	opts := []string{"lxc.utsname=docker", "lxc.utsname = docker "}
11 9
 
... ...
@@ -149,12 +147,8 @@ func TestParseNetworkOptsUdp(t *testing.T) {
149 149
 	}
150 150
 }
151 151
 
152
-
153
-
154
-
155 152
 // FIXME: test that destroying a container actually removes its root directory
156 153
 
157
-
158 154
 /*
159 155
 func TestLXCConfig(t *testing.T) {
160 156
 	// Memory is allocated randomly for testing
... ...
@@ -242,7 +236,6 @@ func grepFile(t *testing.T, path string, pattern string) {
242 242
 }
243 243
 */
244 244
 
245
-
246 245
 func TestGetFullName(t *testing.T) {
247 246
 	name, err := getFullName("testing")
248 247
 	if err != nil {
... ...
@@ -1,13 +1,12 @@
1 1
 package docker
2 2
 
3 3
 import (
4
-	"testing"
5 4
 	"fmt"
6 5
 	"net/http"
7 6
 	"net/http/httptest"
7
+	"testing"
8 8
 )
9 9
 
10
-
11 10
 func TestGetBoolParam(t *testing.T) {
12 11
 	if ret, err := getBoolParam("true"); err != nil || !ret {
13 12
 		t.Fatalf("true -> true, nil | got %t %s", ret, err)
... ...
@@ -680,7 +680,6 @@ func (runtime *Runtime) Nuke() error {
680 680
 	return os.RemoveAll(runtime.config.Root)
681 681
 }
682 682
 
683
-
684 683
 func linkLxcStart(root string) error {
685 684
 	sourcePath, err := exec.LookPath("lxc-start")
686 685
 	if err != nil {
... ...
@@ -55,7 +55,6 @@ func TestPools(t *testing.T) {
55 55
 	}
56 56
 }
57 57
 
58
-
59 58
 func TestLogEvent(t *testing.T) {
60 59
 	srv := &Server{
61 60
 		events:    make([]utils.JSONMessage, 0, 64),
... ...
@@ -2,9 +2,9 @@ package docker
2 2
 
3 3
 import (
4 4
 	"github.com/dotcloud/docker/utils"
5
-	"testing"
6
-	"path"
7 5
 	"os"
6
+	"path"
7
+	"testing"
8 8
 )
9 9
 
10 10
 const (
... ...
@@ -35,7 +35,6 @@ func mkTestTagStore(root string, t *testing.T) *TagStore {
35 35
 	return store
36 36
 }
37 37
 
38
-
39 38
 func TestLookupImage(t *testing.T) {
40 39
 	tmp, err := utils.TestDirectory("")
41 40
 	if err != nil {
... ...
@@ -1208,8 +1208,6 @@ func PartParser(template, data string) (map[string]string, error) {
1208 1208
 	return out, nil
1209 1209
 }
1210 1210
 
1211
-
1212
-
1213 1211
 var globalTestID string
1214 1212
 
1215 1213
 // TestDirectory creates a new temporary directory and returns its path.
... ...
@@ -1246,4 +1244,3 @@ func GetCallerName(depth int) string {
1246 1246
 	callerShortName := parts[len(parts)-1]
1247 1247
 	return callerShortName
1248 1248
 }
1249
-