Skip to content

Commit

Permalink
Assign Readstrategy
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Awawdi <[email protected]>
  • Loading branch information
Muhammad-awawdi-amazon committed Feb 4, 2025
1 parent c10caf0 commit 4a0e350
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,10 @@ mod tests {

#[test]
fn get_connection_for_az_affinity_route() {
let container = create_container_with_az_strategy(false, None);
let container = create_container_with_az_strategy(
false,
Some(ReadFromReplicaStrategy::AZAffinity("use-1a".to_string())),
);

// slot number is not exits
assert!(container
Expand Down Expand Up @@ -905,7 +908,10 @@ mod tests {

#[test]
fn get_connection_for_az_affinity_route_round_robin() {
let container = create_container_with_az_strategy(false, None);
let container = create_container_with_az_strategy(
false,
Some(ReadFromReplicaStrategy::AZAffinity("use-1a".to_string())),
);

let mut addresses = vec![
container
Expand Down

0 comments on commit 4a0e350

Please sign in to comment.