Private GIT

Skip to content
Snippets Groups Projects
Commit 0e54b695 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

fix(test): increase downtime length to prevent timeout in downtime tests.

parent 4115ff40
Branches
Tags
No related merge requests found
...@@ -66,12 +66,7 @@ class DowntimeStartAndStopContext extends CentreonContext ...@@ -66,12 +66,7 @@ class DowntimeStartAndStopContext extends CentreonContext
{ {
$page = new DowntimeConfigurationPage($this); $page = new DowntimeConfigurationPage($this);
$downtimeEndTime = '+1 minutes';
$currentSeconds = date("s");
if ($currentSeconds >= 45) {
$downtimeEndTime = '+2 minutes'; $downtimeEndTime = '+2 minutes';
}
$this->downtimeEndTime = date("H:i", strtotime($downtimeEndTime)); $this->downtimeEndTime = date("H:i", strtotime($downtimeEndTime));
$page->setProperties(array( $page->setProperties(array(
'type' => DowntimeConfigurationPage::TYPE_SERVICE, 'type' => DowntimeConfigurationPage::TYPE_SERVICE,
...@@ -91,12 +86,7 @@ class DowntimeStartAndStopContext extends CentreonContext ...@@ -91,12 +86,7 @@ class DowntimeStartAndStopContext extends CentreonContext
$this->submitServiceResult($this->host, $this->service, 0, __FUNCTION__); $this->submitServiceResult($this->host, $this->service, 0, __FUNCTION__);
$page = new DowntimeConfigurationPage($this); $page = new DowntimeConfigurationPage($this);
$downtimeEndTime = '+1 minutes';
$currentSeconds = date("s");
if ($currentSeconds >= 45) {
$downtimeEndTime = '+2 minutes'; $downtimeEndTime = '+2 minutes';
}
$this->downtimeEndTime = date("H:i", strtotime($downtimeEndTime)); $this->downtimeEndTime = date("H:i", strtotime($downtimeEndTime));
$page->setProperties(array( $page->setProperties(array(
'type' => DowntimeConfigurationPage::TYPE_SERVICE, 'type' => DowntimeConfigurationPage::TYPE_SERVICE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment