mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 00:17:11 +00:00
c95b4f0820
Config::new() and the external decode path read the process-global DEFAULT_KVS OnceLock at call time, and config::tests in the same test binary register it via crate::config::init() mid-run. Several com.rs tests asserted on unregistered state (heal section absence, equality with a later Config::new()), so they could flip depending on thread scheduling under cargo test -p rustfs-ecstore --lib config::. Assert on the semantic heal diff instead of section presence, normalize compared configs with a single DEFAULT_KVS snapshot taken after both sides exist, and compare the snapshot transaction test against the persisted baseline bytes.