File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/integration/client/metrics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ func TestAPIServerTransportMetrics(t *testing.T) {
57
57
58
58
// IMPORTANT: reflect the current values if the test changes
59
59
// client_test.go:1407: metric rest_client_transport_cache_entries 3
60
- // client_test.go:1407: metric rest_client_transport_create_calls_total{result="hit"} 61
60
+ // client_test.go:1407: metric rest_client_transport_create_calls_total{result="hit"} 20
61
61
// client_test.go:1407: metric rest_client_transport_create_calls_total{result="miss"} 3
62
62
hits1 , misses1 , entries1 := checkTransportMetrics (t , client )
63
63
// hit ratio at startup depends on multiple factors
64
- if (hits1 * 100 )/ (hits1 + misses1 ) < 90 {
64
+ if (hits1 * 100 )/ (hits1 + misses1 ) < 85 {
65
65
t .Fatalf ("transport cache hit ratio %d lower than 90 percent" , (hits1 * 100 )/ (hits1 + misses1 ))
66
66
}
67
67
@@ -114,7 +114,7 @@ func TestAPIServerTransportMetrics(t *testing.T) {
114
114
}
115
115
116
116
// hit ratio after startup should grow since no new transports are expected
117
- if (hits2 * 100 )/ (hits2 + misses2 ) < 95 {
117
+ if (hits2 * 100 )/ (hits2 + misses2 ) < 85 {
118
118
t .Fatalf ("transport cache hit ratio %d lower than 95 percent" , (hits2 * 100 )/ (hits2 + misses2 ))
119
119
}
120
120
}
You can’t perform that action at this time.
0 commit comments