mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Yet another attempt to fix the intermittent failure of gpg git test (#9146)
* Yet another attempt to fix the race in gpg_git_test * add some fail nows * Need to set preparetestenv * Ensure that http messages go to the correct server
This commit is contained in:
		@@ -91,6 +91,7 @@ func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bo
 | 
			
		||||
	assert.NoError(t, err)
 | 
			
		||||
	listener, err := net.Listen("tcp", u.Host)
 | 
			
		||||
	assert.NoError(t, err)
 | 
			
		||||
	u.Host = listener.Addr().String()
 | 
			
		||||
 | 
			
		||||
	defer func() {
 | 
			
		||||
		ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user