aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-24 20:39:04 +0200
committerGitHub <noreply@github.com>2024-07-24 20:39:04 +0200
commit57ed738af27d0346c1b20b9d188079f3eda0b094 (patch)
tree3992c7b09d37e1b4113069f1cf55a0423e090b37 /tests
parent2ddfbf3e7975283a31558fe764d7067aa363207d (diff)
parent5ea972922bcb03007728b3a2e24dce18cd9cebf0 (diff)
downloadnextcloud-server-57ed738af27d0346c1b20b9d188079f3eda0b094.tar.gz
nextcloud-server-57ed738af27d0346c1b20b9d188079f3eda0b094.zip
Merge pull request #46644 from nextcloud/cast-bigint
fix: cast to bigint on postgresql
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Preview/BackgroundCleanupJobTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php
index a221829b712..c07ec42b36b 100644
--- a/tests/lib/Preview/BackgroundCleanupJobTest.php
+++ b/tests/lib/Preview/BackgroundCleanupJobTest.php
@@ -180,9 +180,11 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
$f1->newFile('foo.jpg', 'foo');
$f2 = $appdata->newFolder('123456782');
$f2->newFile('foo.jpg', 'foo');
+ $f2 = $appdata->newFolder((string)PHP_INT_MAX - 1);
+ $f2->newFile('foo.jpg', 'foo');
$appdata = \OC::$server->getAppDataDir('preview');
- $this->assertSame(2, count($appdata->getDirectoryListing()));
+ $this->assertSame(3, count($appdata->getDirectoryListing()));
$job = new BackgroundCleanupJob($this->timeFactory, $this->connection, $this->getRoot(), $this->mimeTypeLoader, true);
$job->run([]);