Skip to content

Commit

Permalink
use different port for each package; redis_test: fix test process name
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Aug 16, 2023
1 parent b835957 commit 87d9094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nix/redis_test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down
3 changes: 3 additions & 0 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87d9094

Please sign in to comment.