Skip to content

Commit

Permalink
Fix compiling tests, rename module looped_conter to wrapped_counter
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Apr 4, 2021
1 parent 7be6d7c commit d8380c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/shared_lib/src/framebuffer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::looped_counter::WrappedCounter;
use crate::wrapped_counter::WrappedCounter;
use bevy::log;
use std::collections::VecDeque;

Expand Down
2 changes: 1 addition & 1 deletion libs/shared_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use std::{any::TypeId, borrow::Cow, collections::HashMap, sync::Mutex};

pub mod framebuffer;
pub mod game;
pub mod looped_counter;
pub mod wrapped_counter;
pub mod messages;
pub mod net;
pub mod player;
Expand Down
3 changes: 2 additions & 1 deletion libs/shared_lib/src/net.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
framebuffer::FrameNumber,
looped_counter::WrappedCounter,
wrapped_counter::WrappedCounter,
messages::{
Message, ReliableClientMessage, ReliableServerMessage, UnreliableClientMessage,
UnreliableServerMessage,
Expand Down Expand Up @@ -477,6 +477,7 @@ mod tests {
ConnectionState {
session_id: SessionId::new(0),
status: ConnectionStatus::Uninitialized,
status_updated_at: Instant::now(),
newest_acknowledged_incoming_packet: None,
incoming_packets_acks: 0,
outcoming_packets_acks: VecDeque::from(acknowledgments),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ where

#[cfg(test)]
mod tests {
use crate::looped_counter::WrappedCounter;
use crate::wrapped_counter::WrappedCounter;

#[test]
fn test_add_overflow() {
Expand Down

0 comments on commit d8380c1

Please sign in to comment.