mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
nixos/bpftune: drop flaky tests
This commit is contained in:
parent
bc8224cab6
commit
3f751bfdf6
@ -7,31 +7,14 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
||||
};
|
||||
|
||||
nodes = {
|
||||
client = { pkgs, ... }: {
|
||||
machine = { pkgs, ... }: {
|
||||
services.bpftune.enable = true;
|
||||
|
||||
boot.kernel.sysctl."net.ipv4.tcp_rmem" = "4096 131072 1310720";
|
||||
|
||||
environment.systemPackages = [ pkgs.iperf3 ];
|
||||
};
|
||||
|
||||
server = { ... }: {
|
||||
services.iperf3 = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
with subtest("bpftune startup"):
|
||||
client.wait_for_unit("bpftune.service")
|
||||
client.wait_for_console_text("bpftune works fully")
|
||||
|
||||
with subtest("bpftune tcp buffer size"):
|
||||
server.wait_for_unit("iperf3.service")
|
||||
client.succeed("iperf3 --reverse -c server")
|
||||
client.wait_for_console_text("need to increase TCP buffer size")
|
||||
machine.wait_for_unit("bpftune.service")
|
||||
machine.wait_for_console_text("bpftune works")
|
||||
'';
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user