Skip to content

Commit

Permalink
remove dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow committed Dec 2, 2024
1 parent 3a7a9fb commit 7ba349f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bin/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ fn static_opt_dora() -> Result<()> {
#[test]
#[traced_test]
fn discover_req_addr() -> Result<()> {
dbg!("fooab");
let chaddr = utils::rand_mac();
let _srv = DhcpServerEnv::start(
"basic.yaml",
Expand All @@ -281,15 +280,12 @@ fn discover_req_addr() -> Result<()> {
"dhcpsrv",
"192.168.2.1",
);
dbg!(&chaddr);
dbg!("foo");
// use veth_cli created in start()
let settings = ClientSettingsBuilder::default()
.iface_name("dhcpcli")
.target("192.168.2.1".parse::<std::net::IpAddr>().unwrap())
.port(9900_u16)
.build()?;
tracing::info!("here");
// create a client that sends dhcpv4 messages
let mut client = Client::<v4::Message>::new(settings);
// create DISCOVER msg with a requested IP
Expand All @@ -299,11 +295,9 @@ fn discover_req_addr() -> Result<()> {
.chaddr(chaddr)
.build()?;
let resp = client.run(MsgType::Discover(msg_args))?;
tracing::info!("here");

assert_eq!(resp.opts().msg_type().unwrap(), v4::MessageType::Offer);
assert_eq!(resp.yiaddr(), "192.168.2.140".parse::<Ipv4Addr>()?);
tracing::info!("here");

// create REQUEST & send
let sident = utils::get_sident(&resp)?;
Expand Down

0 comments on commit 7ba349f

Please sign in to comment.