Replace transient test labels with stable identifiers

This commit is contained in:
ms2k 2026-07-19 14:27:29 +09:00
commit d0b745950b
3 changed files with 63 additions and 38 deletions

View file

@ -37,7 +37,11 @@ impl Harness {
.await
.expect("connect postgres");
migrate_schema(&pool).await.expect("schema migrate");
let namespace = format!("{}wp15:{name}:{}:", coordination_namespace(), nonce());
let namespace = format!(
"{}attempt-authority:{name}:{}:",
coordination_namespace(),
nonce()
);
let coordination = CoordinationStore::connect(
&coordination_url,
namespace,

View file

@ -41,7 +41,11 @@ impl Harness {
migrate_schema(&pool).await.expect("schema migrate");
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp16:{name}:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-mutations:{name}:{}:",
coordination_namespace(),
nonce()
),
StoreConfig {
global_limit: 16,
lease_ttl: Duration::from_secs(10),

View file

@ -132,7 +132,11 @@ impl Harness {
.expect("reset recovery test state");
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp17:{name}:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:{name}:{}:",
coordination_namespace(),
nonce()
),
StoreConfig {
global_limit: 32,
lease_ttl: Duration::from_secs(10),
@ -460,7 +464,11 @@ async fn coordination_partition_rolls_back_and_restart_converges() {
let proxy_url = proxy.url();
let store = CoordinationStore::connect(
&proxy_url,
format!("{}wp17:partition:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:partition:{}:",
coordination_namespace(),
nonce()
),
StoreConfig::default(),
)
.await
@ -501,7 +509,11 @@ async fn coordination_partition_rolls_back_and_restart_converges() {
let resumed_proxy = CoordinationProxy::start(upstream, Some(address)).await;
let resumed_store = CoordinationStore::connect(
&resumed_proxy.url(),
format!("{}wp17:partition:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:partition:{}:",
coordination_namespace(),
nonce()
),
StoreConfig::default(),
)
.await