diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-08-29 20:18:35 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-08-29 20:19:33 +0200 |
commit | 656412daa422533ddc09e7b97bbb00ca3a3042e3 (patch) | |
tree | f281483308e8b6efd14ebf1f754c6a2334e6a094 /tests | |
parent | cb31a40d99bbc20c3e718152824b6b0ee5d28851 (diff) | |
download | nextcloud-server-656412daa422533ddc09e7b97bbb00ca3a3042e3.tar.gz nextcloud-server-656412daa422533ddc09e7b97bbb00ca3a3042e3.zip |
test(phpunit): skip sharding tests on 32bit
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php | 3 | ||||
-rw-r--r-- | tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php b/tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php index 0397ce68776..12ba74fe89f 100644 --- a/tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php +++ b/tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php @@ -26,6 +26,9 @@ class PartitionedQueryBuilderTest extends TestCase { private AutoIncrementHandler $autoIncrementHandler; protected function setUp(): void { + if (PHP_INT_SIZE < 8) { + $this->markTestSkipped('Test requires 64bit'); + } $this->connection = Server::get(IDBConnection::class); $this->shardConnectionManager = Server::get(ShardConnectionManager::class); $this->autoIncrementHandler = Server::get(AutoIncrementHandler::class); diff --git a/tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php b/tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php index 7af93bbbe59..8f95c1b6263 100644 --- a/tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php +++ b/tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php @@ -27,6 +27,9 @@ class SharedQueryBuilderTest extends TestCase { private AutoIncrementHandler $autoIncrementHandler; protected function setUp(): void { + if (PHP_INT_SIZE < 8) { + $this->markTestSkipped('Test requires 64bit'); + } $this->connection = Server::get(IDBConnection::class); $this->autoIncrementHandler = Server::get(AutoIncrementHandler::class); } |