| ... | ... |
@@ -99,7 +99,7 @@ func TestGetVersion(t *testing.T) {
|
| 99 | 99 |
t.Fatal(err) |
| 100 | 100 |
} |
| 101 | 101 |
if v.Version != VERSION {
|
| 102 |
- t.Errorf("Excepted version %s, %s found", VERSION, v.Version)
|
|
| 102 |
+ t.Errorf("Expected version %s, %s found", VERSION, v.Version)
|
|
| 103 | 103 |
} |
| 104 | 104 |
} |
| 105 | 105 |
|
| ... | ... |
@@ -129,7 +129,7 @@ func TestGetInfo(t *testing.T) {
|
| 129 | 129 |
t.Fatal(err) |
| 130 | 130 |
} |
| 131 | 131 |
if infos.Images != len(initialImages) {
|
| 132 |
- t.Errorf("Excepted images: %d, %d found", len(initialImages), infos.Images)
|
|
| 132 |
+ t.Errorf("Expected images: %d, %d found", len(initialImages), infos.Images)
|
|
| 133 | 133 |
} |
| 134 | 134 |
} |
| 135 | 135 |
|
| ... | ... |
@@ -166,7 +166,7 @@ func TestGetImagesJSON(t *testing.T) {
|
| 166 | 166 |
} |
| 167 | 167 |
|
| 168 | 168 |
if len(images) != len(initialImages) {
|
| 169 |
- t.Errorf("Excepted %d image, %d found", len(initialImages), len(images))
|
|
| 169 |
+ t.Errorf("Expected %d image, %d found", len(initialImages), len(images))
|
|
| 170 | 170 |
} |
| 171 | 171 |
|
| 172 | 172 |
found := false |
| ... | ... |
@@ -177,7 +177,7 @@ func TestGetImagesJSON(t *testing.T) {
|
| 177 | 177 |
} |
| 178 | 178 |
} |
| 179 | 179 |
if !found {
|
| 180 |
- t.Errorf("Excepted image %s, %+v found", unitTestImageName, images)
|
|
| 180 |
+ t.Errorf("Expected image %s, %+v found", unitTestImageName, images)
|
|
| 181 | 181 |
} |
| 182 | 182 |
|
| 183 | 183 |
r2 := httptest.NewRecorder() |
| ... | ... |
@@ -204,7 +204,7 @@ func TestGetImagesJSON(t *testing.T) {
|
| 204 | 204 |
} |
| 205 | 205 |
|
| 206 | 206 |
if len(images2) != len(initialImages) {
|
| 207 |
- t.Errorf("Excepted %d image, %d found", len(initialImages), len(images2))
|
|
| 207 |
+ t.Errorf("Expected %d image, %d found", len(initialImages), len(images2))
|
|
| 208 | 208 |
} |
| 209 | 209 |
|
| 210 | 210 |
found = false |
| ... | ... |
@@ -236,7 +236,7 @@ func TestGetImagesJSON(t *testing.T) {
|
| 236 | 236 |
} |
| 237 | 237 |
|
| 238 | 238 |
if len(images3) != 0 {
|
| 239 |
- t.Errorf("Excepted 0 image, %d found", len(images3))
|
|
| 239 |
+ t.Errorf("Expected 0 image, %d found", len(images3))
|
|
| 240 | 240 |
} |
| 241 | 241 |
|
| 242 | 242 |
r4 := httptest.NewRecorder() |
| ... | ... |
@@ -282,7 +282,7 @@ func TestGetImagesViz(t *testing.T) {
|
| 282 | 282 |
t.Fatal(err) |
| 283 | 283 |
} |
| 284 | 284 |
if line != "digraph docker {\n" {
|
| 285 |
- t.Errorf("Excepted digraph docker {\n, %s found", line)
|
|
| 285 |
+ t.Errorf("Expected digraph docker {\n, %s found", line)
|
|
| 286 | 286 |
} |
| 287 | 287 |
} |
| 288 | 288 |
|
| ... | ... |
@@ -313,7 +313,7 @@ func TestGetImagesSearch(t *testing.T) {
|
| 313 | 313 |
t.Fatal(err) |
| 314 | 314 |
} |
| 315 | 315 |
if len(results) < 2 {
|
| 316 |
- t.Errorf("Excepted at least 2 lines, %d found", len(results))
|
|
| 316 |
+ t.Errorf("Expected at least 2 lines, %d found", len(results))
|
|
| 317 | 317 |
} |
| 318 | 318 |
} |
| 319 | 319 |
|
| ... | ... |
@@ -337,7 +337,7 @@ func TestGetImagesHistory(t *testing.T) {
|
| 337 | 337 |
t.Fatal(err) |
| 338 | 338 |
} |
| 339 | 339 |
if len(history) != 1 {
|
| 340 |
- t.Errorf("Excepted 1 line, %d found", len(history))
|
|
| 340 |
+ t.Errorf("Expected 1 line, %d found", len(history))
|
|
| 341 | 341 |
} |
| 342 | 342 |
} |
| 343 | 343 |
|
| ... | ... |
@@ -396,7 +396,7 @@ func TestGetContainersJSON(t *testing.T) {
|
| 396 | 396 |
t.Fatal(err) |
| 397 | 397 |
} |
| 398 | 398 |
if len(containers) != 1 {
|
| 399 |
- t.Fatalf("Excepted %d container, %d found", 1, len(containers))
|
|
| 399 |
+ t.Fatalf("Expected %d container, %d found", 1, len(containers))
|
|
| 400 | 400 |
} |
| 401 | 401 |
if containers[0].ID != container.ID {
|
| 402 | 402 |
t.Fatalf("Container ID mismatch. Expected: %s, received: %s\n", container.ID, containers[0].ID)
|
| ... | ... |
@@ -1356,7 +1356,7 @@ func TestDeleteImages(t *testing.T) {
|
| 1356 | 1356 |
} |
| 1357 | 1357 |
|
| 1358 | 1358 |
if len(images) != len(initialImages)+1 {
|
| 1359 |
- t.Errorf("Excepted %d images, %d found", len(initialImages)+1, len(images))
|
|
| 1359 |
+ t.Errorf("Expected %d images, %d found", len(initialImages)+1, len(images))
|
|
| 1360 | 1360 |
} |
| 1361 | 1361 |
|
| 1362 | 1362 |
req, err := http.NewRequest("DELETE", "/images/test:test", nil)
|
| ... | ... |
@@ -1385,7 +1385,7 @@ func TestDeleteImages(t *testing.T) {
|
| 1385 | 1385 |
} |
| 1386 | 1386 |
|
| 1387 | 1387 |
if len(images) != len(initialImages) {
|
| 1388 |
- t.Errorf("Excepted %d image, %d found", len(initialImages), len(images))
|
|
| 1388 |
+ t.Errorf("Expected %d image, %d found", len(initialImages), len(images))
|
|
| 1389 | 1389 |
} |
| 1390 | 1390 |
|
| 1391 | 1391 |
/* if c := runtime.Get(container.Id); c != nil {
|
| ... | ... |
@@ -31,7 +31,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
| 31 | 31 |
} |
| 32 | 32 |
|
| 33 | 33 |
if len(images) != len(initialImages)+2 {
|
| 34 |
- t.Errorf("Excepted %d images, %d found", len(initialImages)+2, len(images))
|
|
| 34 |
+ t.Errorf("Expected %d images, %d found", len(initialImages)+2, len(images))
|
|
| 35 | 35 |
} |
| 36 | 36 |
|
| 37 | 37 |
if _, err := srv.ImageDelete("utest/docker:tag2", true); err != nil {
|
| ... | ... |
@@ -44,7 +44,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
| 44 | 44 |
} |
| 45 | 45 |
|
| 46 | 46 |
if len(images) != len(initialImages)+1 {
|
| 47 |
- t.Errorf("Excepted %d images, %d found", len(initialImages)+1, len(images))
|
|
| 47 |
+ t.Errorf("Expected %d images, %d found", len(initialImages)+1, len(images))
|
|
| 48 | 48 |
} |
| 49 | 49 |
|
| 50 | 50 |
if _, err := srv.ImageDelete("utest:tag1", true); err != nil {
|
| ... | ... |
@@ -57,7 +57,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
| 57 | 57 |
} |
| 58 | 58 |
|
| 59 | 59 |
if len(images) != len(initialImages) {
|
| 60 |
- t.Errorf("Excepted %d image, %d found", len(initialImages), len(images))
|
|
| 60 |
+ t.Errorf("Expected %d image, %d found", len(initialImages), len(images))
|
|
| 61 | 61 |
} |
| 62 | 62 |
} |
| 63 | 63 |
|