Skip to content

Commit 2340a10

Browse files
schmidt-sebastianfredzqm
authored andcommitted
Storage: Fix Preconditions checks in tests (#510)
1 parent d12b0d7 commit 2340a10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

firebase-storage/src/testUtil/java/com/google/firebase/storage/TestDownloadHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,17 @@ private static void verifyTaskCount(StorageReference reference, int expectedTask
267267
Preconditions.checkState(
268268
globalDownloadTasks.size() == expectedTasks,
269269
"Expected active download task to contain %s item(s), but contained %s item(s)",
270-
globalDownloadTasks.size());
270+
globalDownloadTasks.size(),
271+
expectedTasks);
271272
List<FileDownloadTask> downloadTasksAtParent =
272273
StorageTaskManager.getInstance().getDownloadTasksUnder(reference.getParent());
273274
Preconditions.checkState(
274275
downloadTasksAtParent.size() == expectedTasks,
275276
"Expected active download task at location %s to contain %s item(s), "
276277
+ "but contained %s item(s)",
277278
reference.getParent(),
278-
downloadTasksAtParent.size());
279+
downloadTasksAtParent.size(),
280+
expectedTasks);
279281
}
280282

281283
private static String fileTaskToString(FileDownloadTask.TaskSnapshot state) {

0 commit comments

Comments
 (0)