Skip to content

Commit 78dc250

Browse files
committed
Remove unused test
1 parent ed688ef commit 78dc250

File tree

1 file changed

+0
-30
lines changed
  • talpid-wireguard/src/wireguard_go

1 file changed

+0
-30
lines changed

talpid-wireguard/src/wireguard_go/mod.rs

-30
Original file line numberDiff line numberDiff line change
@@ -234,36 +234,6 @@ impl Tunnel for WgGoTunnel {
234234
}
235235
}
236236

237-
#[cfg(daita)]
238-
fn load_maybenot_machines(resource_dir: &Path) -> Result<CString> {
239-
let path = resource_dir.join("maybenot_machines_v2");
240-
log::debug!("Reading maybenot machines from {}", path.display());
241-
242-
let machines = fs::read_to_string(path).map_err(|e| TunnelError::StartDaita(Box::new(e)))?;
243-
let machines = CString::new(machines).map_err(|e| TunnelError::StartDaita(Box::new(e)))?;
244-
Ok(machines)
245-
}
246-
247-
#[cfg(test)]
248-
mod test {
249-
/// Test whether `maybenot_machines` in dist-assets contains valid machines.
250-
/// TODO: Remove when switching to dynamic machines.
251-
#[cfg(daita)]
252-
#[test]
253-
fn test_load_maybenot_machines() {
254-
use super::load_maybenot_machines;
255-
use std::path::PathBuf;
256-
257-
let dist_assets = std::env::var("CARGO_MANIFEST_DIR")
258-
.map(PathBuf::from)
259-
.expect("CARGO_MANIFEST_DIR env var not set")
260-
.join("..")
261-
.join("dist-assets");
262-
let machines = load_maybenot_machines(&dist_assets).unwrap();
263-
wireguard_go_rs::validate_maybenot_machines(&machines).unwrap();
264-
}
265-
}
266-
267237
mod stats {
268238
use super::{Stats, StatsMap};
269239

0 commit comments

Comments
 (0)