[dhcp] Temporarily disable flaky test

Following https://fuchsia-review.googlesource.com/c/fuchsia/+/514106,
the dhcp netemul test suite has begun flaking badly. Disable the flaky
test until the underlying race is resolved. Since #[ignore} doesn't work
with the #[variants_test] macro we have to hack an early return
statement into the test.

Bug: 74365
Change-Id: I9d2f788c0a14b051709cf16049ac7d1e6e553282
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/514722
Commit-Queue: Amanda Tait <atait@google.com>
Fuchsia-Auto-Submit: Amanda Tait <atait@google.com>
Reviewed-by: Tamir Duberstein <tamird@google.com>
diff --git a/src/connectivity/network/tests/integration/dhcp/src/lib.rs b/src/connectivity/network/tests/integration/dhcp/src/lib.rs
index fd9ca01..f23ec01 100644
--- a/src/connectivity/network/tests/integration/dhcp/src/lib.rs
+++ b/src/connectivity/network/tests/integration/dhcp/src/lib.rs
@@ -466,6 +466,11 @@
 async fn acquire_dhcp_then_renew_with_dhcpd_bound_device<E: netemul::Endpoint>(
     name: &str,
 ) -> Result {
+    // TODO(https://fxbug.dev/74365): Reenable flaky test once underlying race is fixed.
+    // #[ignore] doesn't work with #[variants_test] so we have to employ the following hack.
+    if true {
+        return Ok(());
+    }
     let config = default_test_config().context("failed to create test config")?;
     let mut dhcp_parameters = config.dhcp_parameters();
     let () = dhcp_parameters.push(fidl_fuchsia_net_dhcp::Parameter::Lease(