aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/git_helper_for_declarative_test.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-26 15:35:41 +0000
committerLunny Xiao <xiaolunwen@gmail.com>2019-11-26 23:35:41 +0800
commit9d9e6ac4117b8efd2f85fc625a4ccfdcf73c4fc3 (patch)
treed3522e058de2f5e1556df9f21e345f9f7633dcf8 /integrations/git_helper_for_declarative_test.go
parent055f6d229672524e3933940f95aa28939d94961a (diff)
downloadgitea-9d9e6ac4117b8efd2f85fc625a4ccfdcf73c4fc3.tar.gz
gitea-9d9e6ac4117b8efd2f85fc625a4ccfdcf73c4fc3.zip
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
Diffstat (limited to 'integrations/git_helper_for_declarative_test.go')
-rw-r--r--integrations/git_helper_for_declarative_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go
index 5ac3348e77..024bf87a3c 100644
--- a/integrations/git_helper_for_declarative_test.go
+++ b/integrations/git_helper_for_declarative_test.go
@@ -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)