fix stats test race (#1560)
* fix stats test race * and try fix TestMapAddressEnv race
This commit is contained in:
		@ -1108,7 +1108,9 @@ func testClientStats(t *testing.T, tc *testConfig, cc *rpcConfig, checkFuncs map
 | 
			
		||||
		err:         err,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	h.mu.Lock()
 | 
			
		||||
	checkConnStats(t, h.gotConn)
 | 
			
		||||
	h.mu.Unlock()
 | 
			
		||||
	checkClientStats(t, h.gotRPC, expect, checkFuncs)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user