Skip to content

Commit

Permalink
fix: testDeleteProgramWithMapView failed on jenkins (#19706)
Browse files Browse the repository at this point in the history
* fix: FK constraint error when delete Program with MapView

* fix: failed test on jenkins testDeleteProgramWithMapView

* fix: testDeleteProgramWithMapView failed on jenkins
  • Loading branch information
vietnguyen authored Jan 17, 2025
1 parent 45a7218 commit a95f669
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public int countMapViewMaps(MapView mapView) {
}

@Override
@Transactional(readOnly = true)
public List<MapView> findByProgram(Program program) {
return mapViewStore.findByProgram(program);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ void testDeleteProgramWithMapView() {
mapView.setProgramStage(programStageA);
mappingService.addMapView(mapView);
assertDoesNotThrow(() -> programService.deleteProgram(programA));

entityManager.flush();
mapView = mappingService.getMapView(mapView.getId());
assertNull(mapView.getProgram());
assertNull(mapView.getProgramStage());
Expand Down

0 comments on commit a95f669

Please sign in to comment.