Skip to content

Commit ae4143a

Browse files
authored
Change storage download size on Android, to prevent FTL flake. (#1199)
* Change storage download size on Android. * Format code.
1 parent 29b1dc5 commit ae4143a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

storage/integration_test/src/integration_test.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ using app_framework::LogError;
6161
const char* kStorageUrl = nullptr;
6262

6363
#if FIREBASE_PLATFORM_DESKTOP
64-
// Use a larger file on desktop...
64+
// Use a larger file on desktop.
6565
const int kLargeFileMegabytes = 64;
66-
#else
67-
// ...and a smaller file on mobile.
66+
#elif FIREBASE_PLATFORM_ANDROID
67+
// Android FTL devices can sometimes be really slow.
68+
// Use a much smaller file.
69+
const int kLargeFileMegabytes = 8;
70+
#else // iOS or tvOS
71+
// iOS FTL devices can handle a medium-sized file.
6872
const int kLargeFileMegabytes = 32;
6973
#endif
7074

0 commit comments

Comments
 (0)