Skip to content

Commit

Permalink
test: Cleanups for desync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhelsing committed Oct 21, 2023
1 parent 4302b64 commit 75a7636
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_p2p_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ fn test_desyncs_detected() -> Result<(), GGRSError> {
let mut stub2 = stubs::GameStub::new();

// run normally for some frames (past first desync interval)
let reps = 110;
for i in 0..reps {
for i in 0..110 {
sess1.poll_remote_clients();
sess2.poll_remote_clients();

Expand All @@ -206,8 +205,7 @@ fn test_desyncs_detected() -> Result<(), GGRSError> {
assert_eq!(sess2.events().len(), 0);

// run for some more frames
let reps = 100;
for _ in 0..reps {
for _ in 0..100 {
sess1.poll_remote_clients();
sess2.poll_remote_clients();

Expand Down Expand Up @@ -304,7 +302,7 @@ fn test_desyncs_and_input_delay_no_panic() -> Result<(), GGRSError> {
let mut stub2 = stubs::GameStub::new();

// run normally for some frames (past first desync interval)
for i in 0..110 {
for i in 0..150 {
sess1.poll_remote_clients();
sess2.poll_remote_clients();

Expand Down

0 comments on commit 75a7636

Please sign in to comment.