Sytem Ubuntu 16.04
maven version 3.3.9
Java version 1.8.0_151
I am trying to build a cloned repo of openmrs-core with no success. I keep on getting these errors
Failed Tests
Tests run: 55, Failures: 2, Errors: 0, Skipped: 4, Time elapsed: 0.5 sec <<< FAILURE! - in org.openmrs.api.AdministrationServiceTest
getAllGlobalProperties_shouldReturnAllGlobalPropertiesInTheDatabase(org.openmrs.api.AdministrationServiceTest) Time elapsed: 0.012 sec <<< FAILURE!
java.lang.AssertionError: expected:<21> but was:<25>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.openmrs.api.AdministrationServiceTest.getAllGlobalProperties_shouldReturnAllGlobalPropertiesInTheDatabase(AdministrationServiceTest.java:449)
purgeGlobalProperty_shouldDeleteGlobalPropertyFromDatabase(org.openmrs.api.AdministrationServiceTest) Time elapsed: 0.008 sec <<< FAILURE!
java.lang.AssertionError: expected:<21> but was:<25>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.openmrs.api.AdministrationServiceTest.purgeGlobalProperty_shouldDeleteGlobalPropertyFromDatabase(AdministrationServiceTest.java:514)
Final results
Results :
Failed tests:
AdministrationServiceTest.getAllGlobalProperties_shouldReturnAllGlobalPropertiesInTheDatabase:449 expected:<21> but was:<25>
AdministrationServiceTest.purgeGlobalProperty_shouldDeleteGlobalPropertyFromDatabase:514 expected:<21> but was:<25>
I have tried the solutions on several linked posts with no success. Has someone encountered this and has a different solution ?
Also what may be the cause of this considering i haven’t made any local changes?
What you are reporting is different from what he reported. His report is about getting test failure of an openmrs-core compilation without any changes. Are you sure you are facing the same?