Skip to content
Snippets Groups Projects
Commit 542bbf96 authored by hexaki's avatar hexaki
Browse files

Issue #3004866 : Update for elasticsearch testing dependency

parent 3a3d2376
No related branches found
No related tags found
1 merge request!15Resolve #3004866 "Fix failing tests"
...@@ -62,7 +62,7 @@ phpunit: ...@@ -62,7 +62,7 @@ phpunit:
command: command:
- /bin/bash - /bin/bash
- -c - -c
- docker-entrypoint.sh elasticsearch -e 'discovery.type=single-node' -e 'ELASTICSEARCH_JAVA_OPTS=-Xms1g -Xmx1g' - echo -Xms256m >> /usr/share/elasticsearch/config/jvm.options && echo -Xmx256m >> /usr/share/elasticsearch/config/jvm.options && /usr/local/bin/docker-entrypoint.sh elasticsearch -Ediscovery.type=single-node
################################################################################### ###################################################################################
# #
......
...@@ -66,9 +66,7 @@ class ElasticsearchTest extends BackendTestBase { ...@@ -66,9 +66,7 @@ class ElasticsearchTest extends BackendTestBase {
'elasticsearch_test', 'elasticsearch_test',
]); ]);
if (!$this->serverAvailable()) { $this->assertTrue($this->serverAvailable(), "ElasticSearch server not available");
$this->markTestSkipped("ElasticSearch server not available");
}
} }
/** /**
...@@ -80,6 +78,15 @@ class ElasticsearchTest extends BackendTestBase { ...@@ -80,6 +78,15 @@ class ElasticsearchTest extends BackendTestBase {
$this->container = NULL; $this->container = NULL;
} }
/**
* {@inheritdoc}
*/
protected function indexItems($index_id) {
$index = parent::indexItems($index_id);
sleep(6);
return $index;
}
/** /**
* Check if the server is available. * Check if the server is available.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment