diff --git a/integration/container_stats_test.go b/integration/container_stats_test.go index 2f49d1b0d..3533631cc 100644 --- a/integration/container_stats_test.go +++ b/integration/container_stats_test.go @@ -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