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

View File

@@ -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