Skip to content

High performance self-hosted photo and video management solution.

chore: fix mobile test flakiness (#29325)

shenlong49a821b0d000
diff --git a/mobile/test/medium/repository_context.dart b/mobile/test/medium/repository_context.dart
index 00390d455f..ed06774e82 100644
--- a/mobile/test/medium/repository_context.dart
+++ b/mobile/test/medium/repository_context.dart
@@ -217,8 +217,8 @@ class MediumRepositoryContext {
}
Future<AssetFaceEntityData> newFace({String? assetId, String? personId, int? imageWidth, int? imageHeight}) {
- imageWidth ??= TestUtils.randInt(999) + 1;
- imageHeight ??= TestUtils.randInt(999) + 1;
+ imageWidth ??= TestUtils.randInt(999) + 2;
+ imageHeight ??= TestUtils.randInt(999) + 2;
final x1 = TestUtils.randInt(imageWidth - 1);
final y1 = TestUtils.randInt(imageHeight - 1);