radicle/test: Don't hard-code "radicle.xyz"
This commit is contained in:
parent
2127782b74
commit
e2c476a387
|
|
@ -489,7 +489,7 @@ mod test {
|
||||||
) -> git::Oid {
|
) -> git::Oid {
|
||||||
let sig = git::raw::Signature::new(
|
let sig = git::raw::Signature::new(
|
||||||
"anonymous",
|
"anonymous",
|
||||||
"anonymous@radicle.xyz",
|
"anonymous@radicle.example.com",
|
||||||
&git::raw::Time::new(0, 0),
|
&git::raw::Time::new(0, 0),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
||||||
|
|
@ -784,7 +784,7 @@ mod test {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_config() {
|
fn test_config() {
|
||||||
let cfg = json::from_value::<Config>(json::json!({
|
let cfg = json::from_value::<Config>(json::json!({
|
||||||
"publicExplorer": "https://app.radicle.xyz/nodes/$host/$rid$path",
|
"publicExplorer": "https://app.radicle.example.com/nodes/$host/$rid$path",
|
||||||
"preferredSeeds": [],
|
"preferredSeeds": [],
|
||||||
"web": {
|
"web": {
|
||||||
"pinned": {
|
"pinned": {
|
||||||
|
|
@ -800,8 +800,8 @@ mod test {
|
||||||
"listen": [],
|
"listen": [],
|
||||||
"peers": { "type": "dynamic", "target": 8 },
|
"peers": { "type": "dynamic", "target": 8 },
|
||||||
"connect": [
|
"connect": [
|
||||||
"z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@rosa.radicle.xyz:8776",
|
"z6MkmJzKhSjQz1USfh8NBtaAFyz5gJace9eBV9yFcfMY5BN5@a.radicle.example.com:8776",
|
||||||
"z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@iris.radicle.xyz:8776"
|
"z6MkrUZHwJD3pqerEBugSZRxDFdVqKnMUbyPHcFe5gkfFvTe@b.radicle.example.com:8776"
|
||||||
],
|
],
|
||||||
"externalAddresses": [ "seed.radicle.example.com:8776" ],
|
"externalAddresses": [ "seed.radicle.example.com:8776" ],
|
||||||
"db": { "journalMode": "wal" },
|
"db": { "journalMode": "wal" },
|
||||||
|
|
|
||||||
|
|
@ -1093,7 +1093,8 @@ mod tests {
|
||||||
let (rid, _, working, _) =
|
let (rid, _, working, _) =
|
||||||
fixtures::project(tmp.path().join("project"), &storage, &signer).unwrap();
|
fixtures::project(tmp.path().join("project"), &storage, &signer).unwrap();
|
||||||
let stored = storage.repository(rid).unwrap();
|
let stored = storage.repository(rid).unwrap();
|
||||||
let sig = git2::Signature::now(&alice.to_string(), "anonymous@radicle.xyz").unwrap();
|
let sig =
|
||||||
|
git2::Signature::now(&alice.to_string(), "anonymous@radicle.example.com").unwrap();
|
||||||
let head = working.head().unwrap().peel_to_commit().unwrap();
|
let head = working.head().unwrap().peel_to_commit().unwrap();
|
||||||
|
|
||||||
git::commit(
|
git::commit(
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,7 @@ impl Arbitrary for Address {
|
||||||
cyphernet::addr::HostName::Ip(net::IpAddr::V6(net::Ipv6Addr::from(octets)))
|
cyphernet::addr::HostName::Ip(net::IpAddr::V6(net::Ipv6Addr::from(octets)))
|
||||||
}
|
}
|
||||||
AddressType::Dns => cyphernet::addr::HostName::Dns(
|
AddressType::Dns => cyphernet::addr::HostName::Dns(
|
||||||
g.choose(&["iris.radicle.xyz", "rosa.radicle.xyz"])
|
g.choose(&["iris.radicle.example.com", "rosa.radicle.example.com"])
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_string(),
|
.to_string(),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue