From e904d01cd2ebbf52fe9b374701b07776c5a872a4 Mon Sep 17 00:00:00 2001
From: loiclau <loic.lau@gmail.com>
Date: Tue, 29 May 2018 11:34:20 +0200
Subject: [PATCH] fix(acceptance) add force check before check last_check on
 metaservice (#6315)

---
 features/bootstrap/AcknowledgementContext.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/features/bootstrap/AcknowledgementContext.php b/features/bootstrap/AcknowledgementContext.php
index 8b496bec86..db7ba83fc4 100644
--- a/features/bootstrap/AcknowledgementContext.php
+++ b/features/bootstrap/AcknowledgementContext.php
@@ -53,6 +53,16 @@ class AcknowledgementContext extends CentreonContext
         ));
         $page->save();
         $this->restartAllPollers();
+
+        $page = new MonitoringServicesPage($this);
+        $this->spin(
+            function ($context) use ($page) {
+                $page->scheduleImmediateCheckForcedOnService('_Module_Meta', 'meta_1');
+                return true;
+            },
+            'Could not schedule check.'
+        );
+
         $this->spin(
             function ($context) {
                 $page = new ServiceMonitoringDetailsPage(
-- 
GitLab