summary refs log tree commit diff
path: root/nixos/tests/ferm.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2019-09-29 15:11:00 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2019-09-29 15:25:11 +0200
commit1fb381844029d0bfd5f3ca85577695c112ce41f1 (patch)
treefbec76327ea244ab6494aabaa2a257762f787674 /nixos/tests/ferm.nix
parent2436175f6351b265398405ece62a2124d7c68440 (diff)
downloadnixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar.gz
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar.bz2
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar.lz
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar.xz
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.tar.zst
nixpkgs-1fb381844029d0bfd5f3ca85577695c112ce41f1.zip
nixos/tests/ferm: wait for DAD timeout before testing
The test has recently been failing due to the IPv6 address
on the server still being in the tentative state, when the
client sends its first request. The server will not start
using the IPv6 address until DAD has completed.

Scripted networking seems not to wait for DAD completion
before completing network-online.target, so let's switch
to networkd instead, which does.
Diffstat (limited to 'nixos/tests/ferm.nix')
-rw-r--r--nixos/tests/ferm.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/ferm.nix b/nixos/tests/ferm.nix
index b8e8663e3ad..14c1cd44f5c 100644
--- a/nixos/tests/ferm.nix
+++ b/nixos/tests/ferm.nix
@@ -22,6 +22,7 @@ import ./make-test.nix ({ pkgs, ...} : {
         {
           networking = {
             dhcpcd.enable = false;
+            useNetworkd = true;
             interfaces.eth1.ipv6.addresses = mkOverride 0 [ { address = "fd00::1"; prefixLength = 64; } ];
             interfaces.eth1.ipv4.addresses = mkOverride 0 [ { address = "192.168.1.1"; prefixLength = 24; } ];
           };