diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Assets/MongoDb/AssetsQueryIntegrationTests.cs b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Assets/MongoDb/AssetsQueryIntegrationTests.cs index a41a53f0b..b3ddaf264 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Assets/MongoDb/AssetsQueryIntegrationTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Assets/MongoDb/AssetsQueryIntegrationTests.cs @@ -153,7 +153,12 @@ namespace Squidex.Domain.Apps.Entities.Assets.MongoDb }; } - var assets = await _.AssetRepository.QueryAsync(_.RandomAppId(), parentId, Q.Empty.WithQuery(clrQuery)); + var q = + Q.Empty + .WithoutTotal() + .WithQuery(clrQuery); + + var assets = await _.AssetRepository.QueryAsync(_.RandomAppId(), parentId, q); return assets; }