]> source.dussan.org Git - nextcloud-server.git/commitdiff
test(phpunit): skip sharding tests on 32bit 47612/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 29 Aug 2024 18:18:35 +0000 (20:18 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 29 Aug 2024 18:19:33 +0000 (20:19 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tests/lib/DB/QueryBuilder/Partitioned/PartitionedQueryBuilderTest.php
tests/lib/DB/QueryBuilder/Sharded/SharedQueryBuilderTest.php

index 0397ce687767b507736129d8ea5bbe0af0ef6f05..12ba74fe89fe086315dff475d2814bc08ee563bb 100644 (file)
@@ -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);
index 7af93bbbe590a4e65305ab5020a0523bcbcac985..8f95c1b62635294c2b3262fa79ca5cc6b2b92efb 100644 (file)
@@ -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);
        }