You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: snapshot_test.rs
    path of file: ./repos/engula/src/server/tests
    
    the code of the file until where you have to start completion: // Copyright 2022 The
    
fn send_snapshot() {
    block_on_current(async {
        let mut ctx = TestContext::new("snapshot_test__send_snapshot");
        ctx.disable_all_balance();
        ctx.mut_raft_testing_knobs()
            .force_new_peer_receiving_snapshot = true;
        let nodes = ctx.bootstrap_servers(4).await;
        let c = ClusterClient::new(nodes.clone()).await;

        let mut node_ids = nodes.keys().cloned().collect::<Vec<_>>();
        let left_node_id = node_ids.pop().unwrap();

        let group_id = 123;
        let shard_id = 234;
        let shard_desc = ShardDesc {
            id: shard_id,
            collection_id: shard_id,
            partition: Some(shard_desc::Partition::Range(
                shard_desc::RangePartition::default(),
            )),
        };
        create_group(&c, group_id, node_ids.clone(), vec![shard_desc]).await;
        insert(&c, group_id, shard_id, 1..100).await;
        ctx.wait_election_timeout().await;

        let new_replica_id = 123123123;
        let empty_desc = GroupDesc {
            id: group_id,
            ..Default::default()
        };
        c.create_replica(left_node_id, new_replica_id, empty_desc)
            .await;
        let mut group_client = c.group(group_id);
        group_client
            .add_replica(new_replica_id, left_node_id)
            .await
            .unwrap();

        ctx.wait_election_timeout().await;
        c.assert_root_group_has_promoted().await;

        // majority(4) == 3, force `new_replica_id` accept new entries.
        ctx.stop_server(node_ids.last().cloned().unwrap()).await;
        ctx.wait_election_timeout().await;
        insert(&c, group_id, shard_id, 100..110).await;
    });
}