Skip to content

Commit

Permalink
fix: fixing ordering of schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Apr 23, 2024
1 parent 4a0c3c2 commit b21c30d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions tui/src/event_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,8 @@ impl EventPool {
});
}

#[cfg_attr(test, mutants::skip)]
pub async fn next(&mut self) -> Option<Event> {
self.event_rx.recv().await
}
}

#[cfg(test)]
mod tests {
use super::*;

#[tokio::test]
async fn test_receive_init_event() {
let mut event_pool = EventPool::new(30f64, 60f64);

event_pool.start();
let event = event_pool.next().await;

assert!(event.is_some());
assert_eq!(event, Some(Event::Init));
}
}

0 comments on commit b21c30d

Please sign in to comment.