nixosTests.cockroachdb: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 20:40:14 +08:00
parent 9b445d3596
commit 9a02037834
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 25 additions and 29 deletions

View File

@ -329,7 +329,7 @@ in
];
};
cockpit = runTest ./cockpit.nix;
cockroachdb = handleTestOn [ "x86_64-linux" ] ./cockroachdb.nix { };
cockroachdb = runTestOn [ "x86_64-linux" ] ./cockroachdb.nix;
code-server = runTest ./code-server.nix;
coder = runTest ./coder.nix;
collectd = runTest ./collectd.nix;

View File

@ -45,8 +45,9 @@
# requirements, but would probably allow both aarch64/x86_64 to work.
#
let
{ lib, ... }:
let
# Creates a node. If 'joinNode' parameter, a string containing an IP address,
# is non-null, then the CockroachDB server will attempt to join/connect to
# the cluster node specified at that address.
@ -59,7 +60,6 @@ let
config,
...
}:
{
# Bank/TPC-C benchmarks take some memory to complete
virtualisation.memorySize = 2048;
@ -103,13 +103,10 @@ let
${pkgs.chrony}/bin/chronyc waitsync
'';
};
in
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "cockroachdb";
meta.maintainers = with pkgs.lib.maintainers; [ thoughtpolice ];
meta.maintainers = with lib.maintainers; [ thoughtpolice ];
nodes = {
node1 = makeNode "country=us,region=east,dc=1" "192.168.1.1" null;
@ -131,4 +128,3 @@ import ./make-test-python.nix (
)
'';
}
)