diff --git a/server/services/sunspec/lib/bdpv/sunspec.bdpv.js b/server/services/sunspec/lib/bdpv/sunspec.bdpv.js index 51f5afa816..dff939730d 100644 --- a/server/services/sunspec/lib/bdpv/sunspec.bdpv.js +++ b/server/services/sunspec/lib/bdpv/sunspec.bdpv.js @@ -64,8 +64,6 @@ async function bdpvInit(bdpvActive) { } this.bdpvTask.start(); - - // setTimeout(await bdpvPush.bind(this), 15000); } else if (this.bdpvTask) { this.bdpvTask.stop(); } diff --git a/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js b/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js index 57dea340f9..f5d65c4c88 100644 --- a/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js +++ b/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js @@ -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 () => {