Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion elk-traffic-monitor-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
},
"scripts": {
"start": "node .",
"test": "mocha --colors ./test --recursive -R spec"
"test": "mocha --exit --colors ./test --recursive -R spec"
}
}
3 changes: 2 additions & 1 deletion elk-traffic-monitor-api/test/_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function requestAsync(uri, options, cb) {
}

async function sendToElasticsearch(elasticConfig, index, dataset) {
console.log(`Creating connection to ElasticSearch cluster: ${elasticConfig.node}`)
const client = new Client({
node: elasticConfig.node
});
Expand All @@ -88,7 +89,7 @@ async function sendToElasticsearch(elasticConfig, index, dataset) {
if (bulkResponse.errors) {
console.log(JSON.stringify(bulkResponse.errors));
}
console.log(`Inserted tes data into index: ${index}`)
console.log(`Inserted test data into index: ${index}`);
}

function getRandomInt(max) {
Expand Down