Skip to content

Commit

Permalink
fix incorrect env
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyjackfrost committed May 24, 2023
1 parent 1737de8 commit e51a8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-driver-canner/test/cannerServer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* istanbul ignore file */
import { PGOptions } from '../src/lib/cannerDataSource';

['CANNER_HOST', 'CANNER_PAT', 'CANNER_WAREHOUSE_SQL_NAME'].forEach(
['CANNER_HOST', 'CANNER_PAT', 'CANNER_WORKSPACE_SQL_NAME'].forEach(
(envName) => {
/* istanbul ignore next */
if (!process.env[envName]) throw new Error(`${envName} not defined`);
Expand All @@ -17,7 +17,7 @@ export class CannerServer {
port: process.env['CANNER_PORT'] || 7432,
user: process.env['CANNER_USER'] || 'canner',
password: process.env['CANNER_PAT'],
database: process.env['CANNER_WAREHOUSE_SQL_NAME'],
database: process.env['CANNER_WORKSPACE_SQL_NAME'],
} as PGOptions,
allow: '*',
};
Expand Down

0 comments on commit e51a8fa

Please sign in to comment.