Align network verifiers with runtime namespace sources
This commit is contained in:
parent
f5455d1d6c
commit
1867f65d4e
1 changed files with 12 additions and 5 deletions
|
|
@ -1220,8 +1220,10 @@ impl NetworkFixture {
|
|||
std::env::current_exe()?,
|
||||
rootfs.join("bin/lazaret-network-probe"),
|
||||
)?;
|
||||
fs::create_dir_all(rootfs.join("etc"))?;
|
||||
fs::write(rootfs.join("etc/resolv.conf"), b"nameserver 10.0.2.3\n")?;
|
||||
fs::write(
|
||||
runtime_domain.join("state-anchor/runtime-files/resolv.conf"),
|
||||
b"nameserver 10.0.2.3\n",
|
||||
)?;
|
||||
let host_loopback = TcpListener::bind((Ipv4Addr::LOCALHOST, 0))?;
|
||||
let host_loopback_port = host_loopback.local_addr()?.port();
|
||||
let abstract_name = format!("lazaret-network-v3-{}", std::process::id()).into_bytes();
|
||||
|
|
|
|||
Loading…
Reference in a new issue