Skip to content

Commit 8e923df

Browse files
committed
nixosTests.systemd: add fq_codel test
1 parent bafc256 commit 8e923df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nixos/tests/systemd.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,11 @@ import ./make-test.nix ({ pkgs, ... }: {
8383
$machine->waitForUnit('multi-user.target');
8484
$machine->succeed('test -e /tmp/shared/shutdown-test');
8585
};
86+
87+
# Test settings from /etc/sysctl.d/50-default.conf are applied
88+
subtest "systemd sysctl settings are applied", sub {
89+
$machine->waitForUnit('multi-user.target');
90+
$machine->succeed('sysctl net.core.default_qdisc | grep -q "fq_codel"');
91+
};
8692
'';
8793
})

0 commit comments

Comments
 (0)