diff options
author | Nick Cao <nickcao@nichi.co> | 2023-07-18 08:48:43 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-07-18 16:58:37 +0800 |
commit | 3f751bfdf6d1086317d175b628a17690605cccd1 (patch) | |
tree | b9cb3ea0942c5251370711c3da29891bc9b7d3a3 /nixos | |
parent | bc8224cab6eb57117193f3ac06fcc46d5775cd4c (diff) |
nixos/bpftune: drop flaky tests
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/bpftune.nix | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/nixos/tests/bpftune.nix b/nixos/tests/bpftune.nix index 63fcfc8b81997..c17bbcd110920 100644 --- a/nixos/tests/bpftune.nix +++ b/nixos/tests/bpftune.nix @@ -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") ''; }) |