aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/tests.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-26 22:55:33 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-26 22:55:33 +0100
commitbb0a8acea3161a08ac69cc2e35489f8d33741d1a (patch)
treee81a6384c4dc26743b67937fd0e0e721a73dc5b3 /src/wireguard/router/tests.rs
parentRemove unused test code. (diff)
downloadwireguard-rs-bb0a8acea3161a08ac69cc2e35489f8d33741d1a.tar.xz
wireguard-rs-bb0a8acea3161a08ac69cc2e35489f8d33741d1a.zip
Make under_load global for WireGuard device
Diffstat (limited to 'src/wireguard/router/tests.rs')
-rw-r--r--src/wireguard/router/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wireguard/router/tests.rs b/src/wireguard/router/tests.rs
index 8d1e812..bad657c 100644
--- a/src/wireguard/router/tests.rs
+++ b/src/wireguard/router/tests.rs
@@ -50,6 +50,7 @@ mod tests {
}))
}
+ #[allow(dead_code)]
fn reset(&self) {
self.0.send.lock().unwrap().clear();
self.0.recv.lock().unwrap().clear();
@@ -103,7 +104,7 @@ mod tests {
}
}
- // wait for scheduling
+ // wait for scheduling (VERY conservative)
fn wait() {
thread::sleep(Duration::from_millis(30));
}