Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
| ... | ... |
@@ -62,7 +62,7 @@ func TestListContainers(t *testing.T) {
|
| 62 | 62 |
t.Fatalf("expected list size 2, got %v", len(list))
|
| 63 | 63 |
} |
| 64 | 64 |
if list[0].ID != "id2" {
|
| 65 |
- t.Fatalf("expected older container to be first, got %v", list[0].ID)
|
|
| 65 |
+ t.Fatalf("expected id2, got %v", list[0].ID)
|
|
| 66 | 66 |
} |
| 67 | 67 |
} |
| 68 | 68 |
|
| ... | ... |
@@ -101,6 +101,6 @@ func TestApplyAllContainer(t *testing.T) {
|
| 101 | 101 |
t.Fatal("expected container to not be nil")
|
| 102 | 102 |
} |
| 103 | 103 |
if cont.ID != "newID" {
|
| 104 |
- t.Fatalf("expected newID, got %v", cont)
|
|
| 104 |
+ t.Fatalf("expected newID, got %v", cont.ID)
|
|
| 105 | 105 |
} |
| 106 | 106 |
} |
| ... | ... |
@@ -105,7 +105,7 @@ func TestStateTimeoutWait(t *testing.T) {
|
| 105 | 105 |
}() |
| 106 | 106 |
select {
|
| 107 | 107 |
case <-time.After(200 * time.Millisecond): |
| 108 |
- t.Fatal("Stop callback doesn't fire in 100 milliseconds")
|
|
| 108 |
+ t.Fatal("Stop callback doesn't fire in 200 milliseconds")
|
|
| 109 | 109 |
case <-stopped: |
| 110 | 110 |
t.Log("Stop callback fired")
|
| 111 | 111 |
} |