File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
pkg/remoteresolution/resolver/framework/cache Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -534,9 +534,10 @@ func TestCacheConcurrentWrites(t *testing.T) {
534534 }
535535
536536 // We expect at least some recent entries to be cached
537- // Due to concurrent access and LRU, we use a conservative threshold (at least 20% of the 100 we checked)
538- if cachedCount < 20 {
539- t .Errorf ("Expected at least 20 recent entries to be cached, but only found %d" , cachedCount )
537+ // Due to concurrent access and LRU, we use a conservative threshold (at least 15% of the 100 we checked)
538+ // Lower threshold needed for race detector which runs slower and can cause more evictions
539+ if cachedCount < 15 {
540+ t .Errorf ("Expected at least 15 recent entries to be cached, but only found %d" , cachedCount )
540541 }
541542}
542543
You can’t perform that action at this time.
0 commit comments