mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix some output information for container test
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
e47ca825d1
commit
92ee5a5d3a
2 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ func TestListContainers(t *testing.T) {
|
|||
t.Fatalf("expected list size 2, got %v", len(list))
|
||||
}
|
||||
if list[0].ID != "id2" {
|
||||
t.Fatalf("expected older container to be first, got %v", list[0].ID)
|
||||
t.Fatalf("expected id2, got %v", list[0].ID)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,6 +101,6 @@ func TestApplyAllContainer(t *testing.T) {
|
|||
t.Fatal("expected container to not be nil")
|
||||
}
|
||||
if cont.ID != "newID" {
|
||||
t.Fatalf("expected newID, got %v", cont)
|
||||
t.Fatalf("expected newID, got %v", cont.ID)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ func TestStateTimeoutWait(t *testing.T) {
|
|||
}()
|
||||
select {
|
||||
case <-time.After(200 * time.Millisecond):
|
||||
t.Fatal("Stop callback doesn't fire in 100 milliseconds")
|
||||
t.Fatal("Stop callback doesn't fire in 200 milliseconds")
|
||||
case <-stopped:
|
||||
t.Log("Stop callback fired")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue