Skip to content

Commit 7cf3541

Browse files
committed
update http tests for major minor versions
1 parent a8dc209 commit 7cf3541

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nix/ext/tests/http.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ self.inputs.nixpkgs.lib.nixos.runTest {
103103
{ nodes, ... }:
104104
let
105105
pg17-configuration = "${nodes.server.system.build.toplevel}/specialisation/postgresql17";
106+
# Convert versions to major.minor format (e.g., "1.5.0" -> "1.5")
107+
toMajorMinor = map (v: lib.versions.majorMinor v);
106108
in
107109
''
108110
versions = {
109-
"15": [${lib.concatStringsSep ", " (map (s: ''"${s}"'') (versions "15"))}],
110-
"17": [${lib.concatStringsSep ", " (map (s: ''"${s}"'') (versions "17"))}],
111+
"15": [${lib.concatStringsSep ", " (map (s: ''"${s}"'') (toMajorMinor (versions "15")))}],
112+
"17": [${lib.concatStringsSep ", " (map (s: ''"${s}"'') (toMajorMinor (versions "17")))}],
111113
}
112114
113115
def run_sql(query):

0 commit comments

Comments
 (0)