From a11850e9952bbc1d8385dbe52d82934c76d003e6 Mon Sep 17 00:00:00 2001 From: thrillfall Date: Tue, 5 Oct 2021 23:24:12 +0200 Subject: [PATCH] dont run test that fails on mysql or sqlite database --- tests/Integration/Migration/TimestampMigrationTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Integration/Migration/TimestampMigrationTest.php b/tests/Integration/Migration/TimestampMigrationTest.php index 8ad3f0d..5bfee24 100644 --- a/tests/Integration/Migration/TimestampMigrationTest.php +++ b/tests/Integration/Migration/TimestampMigrationTest.php @@ -3,9 +3,12 @@ declare(strict_types=1); namespace tests\Integration\Migration; +use Doctrine\DBAL\Platforms\PostgreSQL100Platform; use OC\AllConfig; use OC\Log; use OC\Migration\SimpleOutput; +use OC\OCS\Exception; +use OC\OCS\Result; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionRepository; @@ -54,6 +57,10 @@ class TimestampMigrationTest extends TestCase public function testTimestampConversionRepairStep() { + if (!$this->dbConnection->getDatabasePlatform() instanceof PostgreSQL100Platform) { + self::markTestSkipped("This test only works on postgres"); + } + $episodeActionEntity = new EpisodeActionEntity(); $episodeActionEntity->setPodcast("https://podcast_01.url"); $episodeActionEntity->setEpisode(uniqid("https://episode_01.url"));