mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
stick to latest mongodb client 3.0.x (currently 3.0.11), to avoid warnings about useNewUrlParser DeprecationWarnings
Using mongodb 3.1 will generate `(node:29452) DeprecationWarning: current URL string parser is deprecated,
and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.`
Starting from next Nightscout release mongodb://localhost/test_db should not be used, and only use mongodb://localhost:27017/test_db so changing it in the Makefile already
More info:
- https://stackoverflow.com/questions/50448272/avoid-current-url-string-parser-is-deprecated-warning-by-setting-usenewurlpars
- https://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
# Nightscout tests/builds/analysis
|
||||
TESTS=tests/*.js
|
||||
MONGO_CONNECTION?=mongodb://localhost/test_db
|
||||
MONGO_CONNECTION?=mongodb://localhost:27017/test_db
|
||||
CUSTOMCONNSTR_mongo_settings_collection?=test_settings
|
||||
CUSTOMCONNSTR_mongo_collection?=test_sgvs
|
||||
MONGO_SETTINGS=MONGO_CONNECTION=${MONGO_CONNECTION} \
|
||||
|
||||
Reference in New Issue
Block a user