From 17031f4d23eb92ab6b9c5d28d70fa1bb9baec12f Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 26 Jan 2025 19:51:03 +0000 Subject: [PATCH] fix: another test should create valid urls --- src/forges/forgejo/tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/forges/forgejo/tests.rs b/src/forges/forgejo/tests.rs index a415ada..6d9d005 100644 --- a/src/forges/forgejo/tests.rs +++ b/src/forges/forgejo/tests.rs @@ -759,6 +759,10 @@ mod forgejo { kxio::net::mock() } + pub fn a_hostname() -> String { + format!("{}.net", a_name()) + } + pub fn a_name() -> String { use rand::Rng; use std::iter; @@ -805,7 +809,7 @@ mod forgejo { pub fn a_forge_config() -> ForgeConfig { ForgeConfig::new( ForgeType::MockForge, - a_name(), + a_hostname(), a_name(), a_name(), maybe_a_number(),