Skip to content

Commit a9ca595

Browse files
committed
Increasing test coverage of ping, fixed a few bugs
1 parent f1bef6a commit a9ca595

File tree

10 files changed

+386
-191
lines changed

10 files changed

+386
-191
lines changed

.env-temp

Lines changed: 0 additions & 3 deletions
This file was deleted.

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.14
1+
12

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
image: mongo
77
expose:
88
- 27017
9+
logging:
10+
driver: "none"
911

1012
rsscloud:
1113
build: .
@@ -19,6 +21,8 @@ services:
1921
- 5337
2022
depends_on:
2123
- mongodb
24+
logging:
25+
driver: "none"
2226

2327
rsscloud-tests:
2428
image: rsscloud

package-lock.json

Lines changed: 80 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"body-parser": "^1.19.0",
2222
"console-stamp": "^0.2.9",
2323
"cors": "^2.8.5",
24+
"davexmlrpc": "^0.4.24",
2425
"dotenv": "^8.2.0",
2526
"express": "^4.17.1",
2627
"express-handlebars": "^3.1.0",

services/notify-subscribers.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
for (let subscription of subscriptions.pleaseNotify) {
3636
const apiurl = subscription.url,
3737
startticks = moment().format('x'),
38-
parts = url.parse(apiurl);
38+
parts = url.parse(apiurl),
39+
notifyProcedure = false,
40+
protocol = 'http-post';
3941

4042
console.log(apiurl);
4143

4244
try {
43-
await notifyOne(resourceUrl, apiurl);
45+
await notifyOne(notifyProcedure, apiurl, protocol, resourceUrl);
4446

4547
subscription.ctUpdates += 1;
4648
subscription.ctConsecutiveErrors = 0;

0 commit comments

Comments
 (0)