Skip to content
Snippets Groups Projects
Commit c51d3c02 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov Committed by Georgy Moshkin
Browse files

test: remove duplicate test_replicaset_mismatch

There's no phenomenon like replicaset mismatch nowadays. The cases this
test actually reproduces are already covered by test_override.
parent 110c7957
No related branches found
No related tags found
1 merge request!178test: remove duplicate test_replicaset_mismatch
Pipeline #9049 passed
......@@ -419,29 +419,6 @@ mod tests {
);
}
#[test]
fn test_replicaset_mismatch() {
let mut topology = Topology::from_peers(peers![(3, "i3", "R-A", "x:1", Online)]);
assert_eq!(
join!(topology, Some("i3"), Some("R-B"), "x:2")
.unwrap_err()
.to_string(),
"i3 is already joined",
);
let mut topology = Topology::from_peers(vec![peer!(2, "i2", "R-A", "nowhere", Online)]);
assert_eq!(
join!(topology, Some("i3"), Some("R-A"), "y:1").unwrap(),
peer!(3, "i3", "R-A", "y:1", Online),
);
assert_eq!(
join!(topology, Some("i3"), Some("R-B"), "y:2")
.unwrap_err()
.to_string(),
"i3 is already joined",
);
}
#[test]
fn test_replication_factor() {
let mut topology = Topology::from_peers(peers![
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment