Skip to content

Commit 3f86ad6

Browse files
committed
also fix corpusmanagement to use the config
1 parent 750f123 commit 3f86ad6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
DEBUG: 'none'
4545

4646
- name: Run E2E tests against the container app
47-
run: DEBUG=test:deprecated npm run test:deprecated:e2e || echo 'Test run failed when trying to use the deployed auth app'
47+
run: DEBUG=test:deprecated npm run test:deprecated:e2e
4848
env:
4949
SOURCE_URL: ${{ secrets.SOURCE_URL }}
5050
DEBUG: 'none'
@@ -73,7 +73,7 @@ jobs:
7373
run: npm run test:deprecated:coverage
7474
env:
7575
SOURCE_URL: ${{ secrets.SOURCE_URL }}
76-
DEBUG: 'lib:corpus'
76+
DEBUG: 'test:deprecated'
7777
- name: Upload coverage report
7878
uses: actions/upload-artifact@v5
7979
if: success() || failure()

lib/corpusmanagement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { NODE_ENV } = process.env;
2-
const { couchKeys } = require('config');
2+
const { couchKeys, usersDbConnection } = require('config');
33
const { Connection } = require('fielddb/api/corpus/Connection');
44
const debug = require('debug')('lib:corpus:management');
55
const url = require('url');
@@ -11,7 +11,7 @@ if (!Connection || !Connection.knownConnections || !Connection.knownConnections.
1111
throw new Error(`The app config for ${NODE_ENV} is missing app types to support. `);
1212
}
1313

14-
const parsed = url.parse('http://localhost:5984');
14+
const parsed = url.parse(usersDbConnection.url);
1515
const couchConnectUrl = `${parsed.protocol}//${couchKeys.username}:${couchKeys.password}@${parsed.host}`;
1616
// console.log('Using couchKeys url: ', couchKeys);
1717
debug('Using corpus url: ', couchConnectUrl);

0 commit comments

Comments
 (0)