From c19b8eab53ebf1316cfad49d98b1ac4701a1fc9c Mon Sep 17 00:00:00 2001 From: mbayopanda Date: Fri, 30 Apr 2021 15:47:22 +0100 Subject: [PATCH] Fix the period for the test --- test/end-to-end/stock/stock.aggregate_consumption.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/end-to-end/stock/stock.aggregate_consumption.js b/test/end-to-end/stock/stock.aggregate_consumption.js index 2496b8e864..b2eb3191d4 100644 --- a/test/end-to-end/stock/stock.aggregate_consumption.js +++ b/test/end-to-end/stock/stock.aggregate_consumption.js @@ -293,7 +293,7 @@ function StockAggregateConsumptionTests() { it(`Prevent negative stock quantities when Aggregate Consumption greater than the quantity available on current depot ${DEPOT_TERTIAIRE}`, async () => { - const getMovementDate = moment(new Date(), 'YYYY-MM-DD').subtract(90, 'days'); + const getMovementDate = moment(new Date(), 'YYYY-MM-DD').subtract(80, 'days'); const getMovementMonth = moment(getMovementDate).month(); const getMovementYear = moment(getMovementDate).year();