- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for metrics_du_test (0.26 sec)
-
pkg/volume/metrics_du_test.go
) // TestMetricsDuGetCapacity tests that MetricsDu can read disk usage // for path func TestMetricsDuGetCapacity(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("metrics_du_test") if err != nil { t.Fatalf("Can't make a tmp dir: %v", err) } defer os.RemoveAll(tmpDir) metrics := NewMetricsDu(tmpDir) expectedEmptyDirUsage, err := volumetest.FindEmptyDirectoryUsageOnTmpfs()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/volume/testing/testing.go
if goruntime.GOOS == "windows" { used, err := resource.ParseQuantity("0") return &used, err } tmpDir, err := utiltesting.MkTmpdir("metrics_du_test") if err != nil { return nil, err } defer os.RemoveAll(tmpDir) out, err := exec.New().Command("nice", "-n", "19", "du", "-x", "-s", "-B", "1", tmpDir).CombinedOutput() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0)