Skip to content

Commit 785d768

Browse files
committed
Ensure that http messages go to the correct server
1 parent 1df76a9 commit 785d768

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

integrations/git_helper_for_declarative_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bo
9191
assert.NoError(t, err)
9292
listener, err := net.Listen("tcp", u.Host)
9393
assert.NoError(t, err)
94+
u.Host = listener.Addr().String()
9495

9596
defer func() {
9697
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)

0 commit comments

Comments
 (0)