- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for clearMetrics (0.1 sec)
-
pkg/kubelet/metrics/metrics_test.go
) const imagePullDurationKey = "kubelet_" + ImagePullDurationKey func TestImagePullDurationMetric(t *testing.T) { t.Run("register image pull duration", func(t *testing.T) { Register() defer clearMetrics() // Pairs of image size in bytes and pull duration in seconds dataPoints := [][]float64{ // 0 byets, 0 seconds {0, 0}, // 5MB, 10 seconds {5 * 1024 * 1024, 10}, // 15MB, 20 seconds
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 08 00:30:31 UTC 2024 - 1.9K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/allocator_test.go
if got := calculateRangeOffset(tt.args.pr); got != tt.want { t.Errorf("calculateRangeOffset() = %v, want %v", got, tt.want) } }) } } func TestNodePortMetrics(t *testing.T) { clearMetrics() // create node port allocator portRange := "30000-32767" pr, err := net.ParsePortRange(portRange) if err != nil { t.Fatal(err) } a, err := NewInMemory(*pr) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 14K bytes - Viewed (0)