Merge pull request #6270 from fuweid/enhance_test_case
integration: add stats result in error message
This commit is contained in:
commit
7cfccdbad6
@ -368,7 +368,7 @@ func TestContainerListStatsWithIdSandboxIdFilter(t *testing.T) {
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if len(stats) != 1 {
|
if len(stats) != 1 {
|
||||||
return false, errors.New("unexpected stats length")
|
return false, errors.Errorf("expected only one stat, but got %v", stats)
|
||||||
}
|
}
|
||||||
if stats[0].GetWritableLayer().GetUsedBytes().GetValue() != 0 {
|
if stats[0].GetWritableLayer().GetUsedBytes().GetValue() != 0 {
|
||||||
return true, nil
|
return true, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user