summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-10 03:03:20 +0200
committerRory& <root@rory.gay>2026-07-10 08:10:37 +0200
commit6d7bede37daf01dda09c22d72159af6c835506ec (patch)
tree20ef373f603f902400ab6c935a356064d5198f20
parentConstrain test usernames to 32 chars (diff)
downloadserver-ts-6d7bede37daf01dda09c22d72159af6c835506ec.tar.xz
Clean up tests integration
-rw-r--r--nix/tests/test-bundle-starts.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/nix/tests/test-bundle-starts.nix b/nix/tests/test-bundle-starts.nix

index 7e72144e..8fd6b98e 100644 --- a/nix/tests/test-bundle-starts.nix +++ b/nix/tests/test-bundle-starts.nix
@@ -22,7 +22,7 @@ in nodes.machine = { imports = [ self.nixosModules.default ]; - virtualisation.cores = 8; + virtualisation.cores = 4; services.spacebarchat-server = let @@ -41,6 +41,14 @@ in ipcMethod = withIpc; settings = { + limits = { + rate.enabled = false; + absoluteRate = { + register.enabled = false; + sendMessage.enabled = false; + }; + }; + rabbitmq = { host = lib.mkIf isRabbitMqTest "amqp://guest:guest@127.0.0.1:5672"; }; @@ -80,6 +88,7 @@ in # https://nixos.org/manual/nixpkgs/unstable/#tester-runNixOSTest testScript = let + testBin = lib.getExe self.outputs.packages.${pkgs.stdenv.system}.Spacebar-Tests; testConfigPath = pkgs.writeText "Spacebar-Tests-appsettings.json" ( builtins.toJSON { Configuration = { @@ -108,8 +117,6 @@ in machine.succeed("curl -f http://cdn.sb.localhost/metrics") # run integration tests - machine.succeed("/usr/bin/env TEST_APPSETTINGS_PATH=${testConfigPath} ${ - lib.getExe self.outputs.packages.${pkgs.stdenv.system}.Spacebar-Tests - } -reporter verbose -parallelAlgorithm aggressive -maxThreads unlimited -preEnumerateTheories") + machine.succeed("/usr/bin/env TEST_APPSETTINGS_PATH=${testConfigPath} ${testBin} -reporter verbose -parallelAlgorithm aggressive -maxThreads unlimited -preEnumerateTheories") ''; }