Skip to content

Commit ae858f6

Browse files
committed
Update: add asserts to test
1 parent 10df537 commit ae858f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WordPress/src/test/java/org/wordpress/android/ui/uploads/UploadStarterTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ class UploadStarterTest : BaseUnitTest() {
261261
queueUploadFromAllSites()
262262
}
263263
}
264+
265+
val expectedInvocations = 1 // 1 blog * 2 sites - 1 failed upload
266+
verify(uploadServiceFacade, times(expectedInvocations)).uploadPost(any(), any<PostModel>(), any())
264267
}
265268

266269
@Test

0 commit comments

Comments
 (0)