aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/main.rs20
1 files changed, 13 insertions, 7 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 51a7a69b..0b1ab375 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -353,12 +353,21 @@ mod test {
}
#[test]
- fn run() {
+ fn init_server() {
harness(async {
server();
});
}
#[test]
+ fn full_game() {
+ harness(async {
+ let mut s = server();
+ s.load(s.index.generate_with_book("junior").unwrap(), None);
+ while s.tick(0.1).is_none() {}
+ });
+ }
+
+ #[test]
fn map_load() {
harness(async {
let mut s = server();
@@ -410,12 +419,9 @@ mod test {
},
)
.unwrap();
- assert!(
- s.packet_in_outer(ConnectionID(conn.try_into().unwrap()), p)
- .is_err(),
- "test {}",
- conn,
- )
+
+ let x = s.packet_in_outer(ConnectionID(conn.try_into().unwrap()), p);
+ assert!(x.is_ok(), "test {} {:?}", conn, x)
}
});
}