(metadata, lbp)
| 491 | } |
| 492 | |
| 493 | function newClient(metadata, lbp) { |
| 494 | const options = defaultOptions(); |
| 495 | options.logEmitter = utils.noop; |
| 496 | options.policies.loadBalancing = lbp || options.policies.loadBalancing; |
| 497 | return { |
| 498 | profileManager: new ProfileManager(options), |
| 499 | options: options, |
| 500 | metadata: metadata, |
| 501 | metrics: new ClientMetrics() |
| 502 | }; |
| 503 | } |
| 504 | |
| 505 | /** @extends RetryPolicy */ |
| 506 | function TestRetryPolicy(retryOnRequestError, retryOnUnavailable, retryOnReadTimeout, retryOnWriteTimeout) { |
no test coverage detected