There is a race in SetWatchExpiryTimeoutForTesting which is used to override the watch expiry timeout of XDSClient for testing. Currently it just sets the watchExpiryTimeout of the XDSClient to the provided value without a mutex each time we call NewClientForTesting which might of might not create a new XDSClient if one is already there.
There is a race in
SetWatchExpiryTimeoutForTestingwhich is used to override the watch expiry timeout of XDSClient for testing. Currently it just sets thewatchExpiryTimeoutof the XDSClient to the provided value without a mutex each time we callNewClientForTestingwhich might of might not create a new XDSClient if one is already there.