Fix #24931 compare with known size of 'usedResourceHandles' instead of theoretical maximum 'maxConnectionPoolSize'
Changing logic to test against 'usedResourceHandles', which is tracked for each thread. No longer depend on maxConnectionPoolSize which might be used or not, depending on the machine the test runs on.
Fix #24931 compare with known size of 'usedResourceHandles' instead of theoretical maximum 'maxConnectionPoolSize'
Changing logic to test against 'usedResourceHandles', which is tracked for each thread. No longer depend on maxConnectionPoolSize which might be used or not, depending on the machine the test runs on.