Skip to content

Commit 5f6964e

Browse files
committed
disable some tests with mmfiles to avoid hangs
1 parent ab1e2f4 commit 5f6964e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

tests/CollectionBasicTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ public function setUp()
3939
$this->collectionHandler->create('ArangoDB_PHP_TestSuite_IndexTestCollection' . '_' . static::$testsTimestamp);
4040

4141
$adminHandler = new AdminHandler($this->connection);
42-
$version = preg_replace('/-[a-z0-9]+$/', '', $adminHandler->getServerVersion());
43-
4442
$this->isMMFilesEngine = ($adminHandler->getEngine()["name"] == "mmfiles");
4543
}
4644

tests/StreamingTransactionTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public function testGetCollection()
299299

300300
public function testInsert()
301301
{
302+
if ($this->isMMFilesEngine) {
303+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
304+
}
302305
$trx = new StreamingTransaction($this->connection, [
303306
TransactionBase::ENTRY_COLLECTIONS => [
304307
TransactionBase::ENTRY_WRITE => [ $this->collection1->getName() ]
@@ -342,6 +345,9 @@ public function testInsert()
342345

343346
public function testRemove()
344347
{
348+
if ($this->isMMFilesEngine) {
349+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
350+
}
345351
// insert a document before the transaction
346352
$documentHandler = new DocumentHandler($this->connection);
347353
$result = $documentHandler->save($this->collection1->getName(), [ '_key' => 'test', 'value' => 'test' ]);
@@ -400,6 +406,9 @@ public function testRemove()
400406

401407
public function testUpdate()
402408
{
409+
if ($this->isMMFilesEngine) {
410+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
411+
}
403412
// insert a document before the transaction
404413
$documentHandler = new DocumentHandler($this->connection);
405414
$result = $documentHandler->save($this->collection1->getName(), [ '_key' => 'test', 'value' => 'test' ]);
@@ -450,6 +459,9 @@ public function testUpdate()
450459

451460
public function testReplace()
452461
{
462+
if ($this->isMMFilesEngine) {
463+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
464+
}
453465
// insert a document before the transaction
454466
$documentHandler = new DocumentHandler($this->connection);
455467
$result = $documentHandler->save($this->collection1->getName(), [ '_key' => 'test', 'value' => 'test' ]);
@@ -504,6 +516,9 @@ public function testReplace()
504516

505517
public function testTruncate()
506518
{
519+
if ($this->isMMFilesEngine) {
520+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
521+
}
507522
$stmt = new Statement($this->connection, [
508523
'query' => 'FOR i IN 1..10 INSERT { _key: CONCAT("test", i), value: i } INTO @@collection',
509524
'bindVars' => [ '@collection' => $this->collection1->getName() ]
@@ -554,6 +569,9 @@ public function testTruncate()
554569

555570
public function testQuery()
556571
{
572+
if ($this->isMMFilesEngine) {
573+
$this->markTestSkipped("test is only meaningful with the rocksdb engine");
574+
}
557575
$trx = new StreamingTransaction($this->connection, [
558576
TransactionBase::ENTRY_COLLECTIONS => [
559577
TransactionBase::ENTRY_WRITE => [ $this->collection1->getName() ]

0 commit comments

Comments
 (0)