test: fix contract tests failing due to strict SSRF checks

This commit is contained in:
sagitchu
2026-04-17 12:02:40 +08:00
parent 5e2580bd45
commit 3ddff94bc3
3 changed files with 14 additions and 1 deletions
@@ -6,9 +6,14 @@ import (
"strings"
"testing"
"go-backend/internal/http/handler"
"go-backend/internal/store/repo"
)
func init() {
handler.DisableSafeRemoteAddrCheckForTesting = true
}
func mustLastInsertID(t *testing.T, r *repo.Repository, label string) int64 {
t.Helper()
var id int64