From 87d9094fdbc88b593a151aa15d9508c48a352fc3 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Wed, 16 Aug 2023 16:32:35 +0530 Subject: [PATCH] use different port for each package; redis_test: fix test process name --- nix/redis_test.nix | 2 +- test/flake.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/redis_test.nix b/nix/redis_test.nix index 73a1e55b..8cf5edec 100644 --- a/nix/redis_test.nix +++ b/nix/redis_test.nix @@ -10,7 +10,7 @@ text = '' ${cfg.package}/bin/redis-cli ping | ${pkgs.gnugrep}/bin/grep -q "PONG" ''; - name = "postgres-test"; + name = "redis-test"; }; depends_on."redis1".condition = "process_healthy"; }; diff --git a/test/flake.nix b/test/flake.nix index ccd4c1f8..1b1bed69 100644 --- a/test/flake.nix +++ b/test/flake.nix @@ -15,18 +15,21 @@ perSystem = { self', pkgs, lib, ... }: { process-compose = { postgres = { + port = 8080; imports = [ inputs.services-flake.processComposeModules.default ../nix/postgres_test.nix ]; }; redis = { + port = 8081; imports = [ inputs.services-flake.processComposeModules.default ../nix/redis_test.nix ]; }; redis-cluster = { + port = 8082; imports = [ inputs.services-flake.processComposeModules.default ../nix/redis-cluster_test.nix