Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit a4ae432

Browse files
author
Chris Wiechmann
authored
Merge pull request #8 from Axway-API-Management-Plus/improve-test-logging
Make sure, test-suite is realizing a failed test
2 parents f0a6b73 + 6fd5794 commit a4ae432

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

elk-traffic-monitor-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
},
4545
"scripts": {
4646
"start": "node .",
47-
"test": "mocha --colors ./test --recursive -R spec"
47+
"test": "mocha --exit --colors ./test --recursive -R spec"
4848
}
4949
}

elk-traffic-monitor-api/test/_base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function requestAsync(uri, options, cb) {
6666
}
6767

6868
async function sendToElasticsearch(elasticConfig, index, dataset) {
69+
console.log(`Creating connection to ElasticSearch cluster: ${elasticConfig.node}`)
6970
const client = new Client({
7071
node: elasticConfig.node
7172
});
@@ -88,7 +89,7 @@ async function sendToElasticsearch(elasticConfig, index, dataset) {
8889
if (bulkResponse.errors) {
8990
console.log(JSON.stringify(bulkResponse.errors));
9091
}
91-
console.log(`Inserted tes data into index: ${index}`)
92+
console.log(`Inserted test data into index: ${index}`);
9293
}
9394

9495
function getRandomInt(max) {

0 commit comments

Comments
 (0)