Skip to content

Commit

Permalink
BDPV
Browse files Browse the repository at this point in the history
  • Loading branch information
rpochet committed Oct 6, 2023
1 parent f6b83bc commit 01a60cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions server/services/sunspec/lib/bdpv/sunspec.bdpv.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ async function bdpvInit(bdpvActive) {
}

this.bdpvTask.start();

// setTimeout(await bdpvPush.bind(this), 15000);
} else if (this.bdpvTask) {
this.bdpvTask.stop();
}
Expand Down
12 changes: 8 additions & 4 deletions server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ describe('SunSpec BDPV', () => {
}),
};
await Bdpv.bdpvPush.call(sunspecManager);
assert.calledOnceWithExactly(sunspecManager.bdpvClient.get, 'expeditionProd_v3.php', {
params: {
index: 6912000,
assert.calledOnceWithExactly(
sunspecManager.bdpvClient.get,
'https://www.bdpv.fr/webservice/majProd/expeditionProd_v3.php',
{
params: {
index: 6912000,
},
},
});
);
});

it('should bdpvPush error', async () => {
Expand Down

0 comments on commit 01a60cf

Please sign in to comment.