Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed Dec 6, 2022
1 parent 3565946 commit 810c06c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ protected void scheduleJobsImmediately() {
ZScoreRefreshIntentServiceJob.scheduleJobImmediately(ZScoreRefreshIntentServiceJob.TAG);
ImageUploadServiceJob.scheduleJobImmediately(ImageUploadServiceJob.TAG);

// This job will not be duplicated but is added here since scheduleJobsPeriodically is only called
// after a remote login and therefore might be run too late. scheduleJobsImmediately is called
// after both remote login and local login
/*
This job will not be duplicated but is added here since scheduleJobsPeriodically is only called
after a remote login and therefore might be run too late. scheduleJobsImmediately is called
after both remote login and local login
*/
String[] eventTypes = new String[]{"Opd Registration", "PNC Registration", "ANC Registration", "Maternity Registration"};
DuplicateZeirIdsCleanerWorker.schedulePeriodically(this.getApplicationContext(), 15, eventTypes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public void onCreateShouldCreate62tables() {
@Test
public void onUpgradeFrom19To20ShouldCreateVaccineOverdueCountRepositoryAndMigrateVaccines() {
MatrixCursor matrixCursor = new MatrixCursor(new String[]{"id", "name"});
//matrixCursor.moveToNext()
SQLiteDatabase database = Mockito.mock(SQLiteDatabase.class);
Mockito.doReturn(matrixCursor).when(database).rawQuery(Mockito.anyString(), Mockito.nullable(String[].class));

Expand All @@ -70,7 +69,6 @@ public void onUpgradeFrom19To20ShouldCreateVaccineOverdueCountRepositoryAndMigra
@Test
public void onUpgradeFrom19To20ShouldAddOutreachColumn() {
MatrixCursor matrixCursor = new MatrixCursor(new String[]{"id", "name"});
//matrixCursor.moveToNext()
SQLiteDatabase database = Mockito.mock(SQLiteDatabase.class);
Mockito.doReturn(matrixCursor).when(database).rawQuery(Mockito.anyString(), Mockito.nullable(String[].class));

Expand Down

0 comments on commit 810c06c

Please sign in to comment.