@@ -467,7 +467,7 @@ let
467467
468468 # Wait for networking to come up
469469 $machine->start;
470− $machine->waitForUnit("network.target");
470+ $machine->waitForUnit("network-online.target");
471471
472472 # Test interfaces set up
473473 my $list = $machine->succeed("ip tuntap list | sort");
@@ -479,7 +479,9 @@ let
479479
480480 # Test interfaces clean up
481481 $machine->succeed("systemctl stop network-addresses-tap0");
482+ $machine->sleep(10);
482483 $machine->succeed("systemctl stop network-addresses-tun0");
484+ $machine->sleep(10);
483485 my $residue = $machine->succeed("ip tuntap list");
484486 $residue eq "" or die(
485487 "Some virtual interface has not been properly cleaned:\n",