Skip to content

Commit

Permalink
Add utils2
Browse files Browse the repository at this point in the history
  • Loading branch information
manelcecs committed Nov 9, 2023
1 parent f23b36c commit f206948
Show file tree
Hide file tree
Showing 3 changed files with 471 additions and 12 deletions.
22 changes: 11 additions & 11 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version: '3.8'
services:
db:
image: postgres:14-alpine3.18
container_name: hpc_postgres_test_api
ports:
- 6432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=test
- POSTGRES_DB=test
volumes:
- ./migration/migration.sql:/docker-entrypoint-initdb.d/init.sql
image: postgres:14-alpine3.18
container_name: hpc_postgres_test_api
ports:
- 6432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=test
- POSTGRES_DB=test
volumes:
- ./migration/migration.sql:/docker-entrypoint-initdb.d/init.sql
solr:
image: solr:8.11.2-slim
environment:
Expand Down Expand Up @@ -38,4 +38,4 @@ services:
environment:
PORT: 80
hostname: hidapi
container_name: test_hidservice_test_api
container_name: test_hidservice_test_api
2 changes: 1 addition & 1 deletion tests/utils/connection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as t from 'io-ts';
import Knex from 'knex';
// TODO: apply singleton pattern to avoid creating the same connection for each test

const CONFIG = t.type({
db: t.type({
poolMin: t.number,
Expand Down
Loading

0 comments on commit f206948

Please sign in to comment.