Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi_3 test case for the DMS #482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

stae1102
Copy link

@stae1102 stae1102 commented Aug 3, 2023

issue: #465

Test if the clients synchronize with each other by turning the server off and on again.

    let server_on_off_time = Duration::from_millis(1000);
    let server_on_off_repetition = 3;

    for _ in 0..server_on_off_repetition {
        let server = tokio::spawn(Dms::serve(
            Arc::clone(&server_dms),
            server_network_config.clone(),
        ));
        tokio::time::sleep(server_on_off_time).await;
        drop(server);
        tokio::time::sleep(server_on_off_time).await;
    }

In order to turn off and on the server, I just dropped server.

@stae1102 stae1102 requested a review from junha1 August 3, 2023 05:55
@stae1102 stae1102 self-assigned this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant