Skip to content

Commit

Permalink
Excluded some OrientDB versions from test because of broken compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
Ostico committed Nov 26, 2016
1 parent d40e13c commit c459d75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/start-ci.sh
Expand Up @@ -85,7 +85,7 @@ echo "--- Starting an instance of OrientDB ---"
if [ -z "${HANG_UP}" ]; then
sh -c ${ODB_LAUNCHER_SYML} </dev/null &>/dev/null &
# Wait a bit for OrientDB to finish the initialization phase.
sleep 5
sleep 10
printf "\n=== The CI environment has been initialized ===\n"
else
sh -c ${ODB_LAUNCHER_SYML}
Expand Down
12 changes: 12 additions & 0 deletions tests/PhpOrient/ConnectionTokenTest.php
Expand Up @@ -35,6 +35,18 @@ public function setUp(){
$this->markTestSkipped( "Token not well supported in OrientDB >= 2.2.0 and < 2.4.0" );
}

if(
(
$client->getTransport()->getOrientVersion()->getMinorVersion() >= 0 &&
$client->getTransport()->getOrientVersion()->getBuildNumber() >= 18
) && (
$client->getTransport()->getOrientVersion()->getMinorVersion() >= 1 &&
$client->getTransport()->getOrientVersion()->getBuildNumber() <= 25
)
){
$this->markTestSkipped( "Token not well supported in OrientDB >= 2.0.18 and < 2.1.25" );
}

}

public function tearDown(){
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpOrient/RecordCommandsTest.php
Expand Up @@ -428,7 +428,7 @@ public function testRecordData(){
$client = new PhpOrient( 'localhost', 2424 );
$client->connect( 'root', 'root' );

$this->skipTestByOrientDBVersion( [ '2.0.13', '1.7.10' ] );
$this->skipTestByOrientDBVersion( [ '2.2.3', '2.2.4', '2.0.18', '2.0.13', '1.7.10' ] );

try {
$client->dbDrop( $db_name, Constants::STORAGE_TYPE_MEMORY );
Expand Down

0 comments on commit c459d75

Please sign in to comment.