Merge pull request #6270 from fuweid/enhance_test_case

integration: add stats result in error message
This commit is contained in:
Maksym Pavlenko 2021-11-28 11:23:37 -08:00 committed by GitHub
commit 7cfccdbad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,7 @@ func TestContainerListStatsWithIdSandboxIdFilter(t *testing.T) {
return false, err
}
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 {
return true, nil