You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/androidTestMock/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksActivityTest.kt
Copy file name to clipboardExpand all lines: app/src/main/java/com/example/android/architecture/blueprints/todoapp/data/source/DefaultTasksRepository.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ class DefaultTasksRepository(
61
61
val remoteTasks = tasksRemoteDataSource.getTasks()
62
62
63
63
if (remoteTasks isSuccess) {
64
-
// Real apps might want to do a proper sync.
64
+
// Real apps might want to do a proper sync, deleting, modifying or adding each task.
Copy file name to clipboardExpand all lines: app/src/test/java/com/example/android/architecture/blueprints/todoapp/data/source/DefaultTasksRepositoryTest.kt
+22-21Lines changed: 22 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ class DefaultTasksRepositoryTest {
Copy file name to clipboardExpand all lines: app/src/test/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailViewModelTest.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ class TaskDetailViewModelTest {
106
106
// When the ViewModel is asked to complete the task
107
107
taskDetailViewModel.setCompleted(false)
108
108
109
-
runBlockingTest {
109
+
mainCoroutineRule.runBlockingTest {
110
110
// Then the task is not completed and the snackbar shows the correct message
111
111
val newTask = (tasksRepository.getTask(task.id) asSuccess).data
0 commit comments