Closed Nitwix closed 3 years ago
The following tests fail. I will relaunch once the PR has been approved in order to not overload the CI.
`com.github.HumanLearning2021.HumanLearningApp.model.DummyDatabaseServiceTest > removeCategoryAlsoRemovesFromDatasets FAILED java.util.ConcurrentModificationException at DummyDatabaseServiceTest.kt:170
com.github.HumanLearning2021.HumanLearningApp.model.DummyDatabaseServiceTest > removeCategoryWorks FAILED java.util.ConcurrentModificationException at DummyDatabaseServiceTest.kt:162
com.github.HumanLearning2021.HumanLearningApp.model.DummyDatabaseManagementTest > removeCategoryWorks FAILED java.util.ConcurrentModificationException at DummyDatabaseManagementTest.kt:134
com.github.HumanLearning2021.HumanLearningApp.model.DummyDatabaseManagementTest > getDatasetsWorks FAILED java.lang.AssertionError at DummyDatabaseManagementTest.kt:228`
The ConcurrentModificationException
s came from the dummy database service. The cause is that we modify a collection while it is being iterated on. This will take some time to fix, and I don't have the courage to start this now. So I will merge this in next sprint.
Closes #92