From 7a1f463525cf7185daa13f9d6366dfb024d771b9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 25 Apr 2026 14:57:43 +0800 Subject: [PATCH] don't send request to example.com --- services/webhook/webhook_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/webhook/webhook_test.go b/services/webhook/webhook_test.go index 63ef6983990..8522cce8eca 100644 --- a/services/webhook/webhook_test.go +++ b/services/webhook/webhook_test.go @@ -48,7 +48,7 @@ func testWebhookPrepare(t *testing.T) { repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) hook := &webhook_model.Webhook{ RepoID: repo.ID, - URL: "https://www.example.com/prepare_webhooks", + URL: "http://localhost/gitea-webhook-test-prepare_webhooks", ContentType: webhook_model.ContentTypeJSON, Events: `{"push_only":true}`, IsActive: true, @@ -66,7 +66,7 @@ func testWebhookPrepareBranchFilterMatch(t *testing.T) { repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 2}) hook := &webhook_model.Webhook{ RepoID: repo.ID, - URL: "https://www.example.com/branch_filter_match", + URL: "http://localhost/gitea-webhook-test-branch_filter_match", ContentType: webhook_model.ContentTypeJSON, Events: `{"push_only":true,"branch_filter":"{master,feature*}"}`, IsActive: true, @@ -85,7 +85,7 @@ func testWebhookPrepareBranchFilterNoMatch(t *testing.T) { repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 2}) hook := &webhook_model.Webhook{ RepoID: repo.ID, - URL: "https://www.example.com/branch_filter_no_match", + URL: "http://localhost/gitea-webhook-test-branch_filter_no_match", ContentType: webhook_model.ContentTypeJSON, Events: `{"push_only":true,"branch_filter":"{master,feature*}"}`, IsActive: true,