fix: another test should create valid urls
This commit is contained in:
parent
1ef76dd7be
commit
17031f4d23
1 changed files with 5 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue