Skip to content

Commit

Permalink
Ensure that http messages go to the correct server
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Nov 26, 2019
1 parent 1df76a9 commit 785d768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integrations/git_helper_for_declarative_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 785d768

Please sign in to comment.