mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Merge pull request #110453 from claudiubelu/unittests-4
unittests: Fixes unit tests for Windows (part 4)
This commit is contained in:
@@ -2827,9 +2827,7 @@ func collectAndComparePluginMetrics(t *testing.T, wantExtensionPoint, wantPlugin
|
||||
if err != nil {
|
||||
t.Errorf("Failed to get %s value, err: %v", metrics.PluginExecutionDuration.Name, err)
|
||||
}
|
||||
if value <= 0 {
|
||||
t.Errorf("Expect latency to be greater than 0, got: %v", value)
|
||||
}
|
||||
checkLatency(t, value)
|
||||
}
|
||||
|
||||
func collectAndCompareFrameworkMetrics(t *testing.T, wantExtensionPoint string, wantStatus framework.Code) {
|
||||
@@ -2847,9 +2845,7 @@ func collectAndCompareFrameworkMetrics(t *testing.T, wantExtensionPoint string,
|
||||
if err != nil {
|
||||
t.Errorf("Failed to get %s value, err: %v", metrics.FrameworkExtensionPointDuration.Name, err)
|
||||
}
|
||||
if value <= 0 {
|
||||
t.Errorf("Expect latency to be greater than 0, got: %v", value)
|
||||
}
|
||||
checkLatency(t, value)
|
||||
}
|
||||
|
||||
func collectAndComparePermitWaitDuration(t *testing.T, wantRes string) {
|
||||
@@ -2870,9 +2866,7 @@ func collectAndComparePermitWaitDuration(t *testing.T, wantRes string) {
|
||||
if err != nil {
|
||||
t.Errorf("Failed to get %s value, err: %v", metrics.PermitWaitDuration.Name, err)
|
||||
}
|
||||
if value <= 0 {
|
||||
t.Errorf("Expect latency to be greater than 0, got: %v", value)
|
||||
}
|
||||
checkLatency(t, value)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user