aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 12:57:24 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 12:57:24 +0200
commit3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00 (patch)
tree379151be9a700d09db96e63313f623cc890808de /src/main.rs
parentStart porting kernel timer semantics (diff)
downloadwireguard-rs-3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00.tar.xz
wireguard-rs-3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00.zip
Enable adding TUN reader to WG interface
Diffstat (limited to '')
-rw-r--r--src/main.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/main.rs b/src/main.rs
index 9b69f54..3c59c67 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -15,25 +15,6 @@ mod types;
mod wireguard;
#[cfg(test)]
-mod tests {
- use crate::types::tun::Tun;
- use crate::types::{bind, dummy, tun};
- use crate::wireguard::Wireguard;
-
- use std::thread;
- use std::time::Duration;
-
- fn init() {
- let _ = env_logger::builder().is_test(true).try_init();
- }
-
- #[test]
- fn test_pure_wireguard() {
- init();
- let (reader, writer, mtu) = dummy::TunTest::create("name").unwrap();
- let wg: Wireguard<dummy::TunTest, dummy::PairBind> = Wireguard::new(reader, writer, mtu);
- thread::sleep(Duration::from_millis(500));
- }
-}
+mod tests;
fn main() {}