Skip to content

Commit

Permalink
fix: fix docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Dec 18, 2023
1 parent be2d862 commit 013310e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ services:
- "3306:3306"
volumes:
- ./config/create-dbs.sql:/docker-entrypoint-initdb.d/01-create-dbs.sql
- ./migrations/create-tables.sql:/docker-entrypoint-initdb.d/02-create-tables.sql
- ./migrations/create-tables.js.sql:/docker-entrypoint-initdb.d/02-create-tables.sql
1 change: 0 additions & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { getRedisClient, initRedis } from '../src/lib/redis/client.js';
import { client as sql } from '../src/lib/sql/client.js';

const dbConfig = config.get<{ connection: { database: string, host: string } }>('db');
console.log(dbConfig);

if (!dbConfig.connection.database.endsWith('-test') && dbConfig.connection.host !== 'localhost') {
throw new Error(`Database name for test env needs to end with "-test" or the host must be "localhost". Got "${dbConfig.connection.database}"@"${dbConfig.connection.host}".`);
Expand Down

0 comments on commit 013310e

Please sign in to comment.