Skip to content

Commit 7cfccdb

Browse files
authored
Merge pull request containerd#6270 from fuweid/enhance_test_case
integration: add stats result in error message
2 parents ff1a105 + 8de1117 commit 7cfccdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration/container_stats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func TestContainerListStatsWithIdSandboxIdFilter(t *testing.T) {
368368
return false, err
369369
}
370370
if len(stats) != 1 {
371-
return false, errors.New("unexpected stats length")
371+
return false, errors.Errorf("expected only one stat, but got %v", stats)
372372
}
373373
if stats[0].GetWritableLayer().GetUsedBytes().GetValue() != 0 {
374374
return true, nil

0 commit comments

Comments
 (0)