Skip to:
Run this on GitHub Actions ubuntu-latest:
mvn test -Dtest=SynchronizationAPITests
50% of all runs have this failure:
[ERROR] SynchronizationAPITests.agedToLostEventShouldBeDeletedBeforeSynchronizationJobByUser:178 Expected: is <1> but: was <0>
The API processes the aged-to-lost event asynchronously, it returns a 201 success without waiting for the event being stored to database:https://github.com/folio-org/mod-patron-blocks/blob/v1.7.0/src/main/java/org/folio/rest/impl/EventHandlersAPI.java#L88-L99
Therefore the test must wait until the event is in the database.
A similar issue:
[ERROR] UserSummaryServiceTest.shouldAddEvent:55 Expected true
Run this on GitHub Actions ubuntu-latest:
mvn test -Dtest=SynchronizationAPITests
50% of all runs have this failure:
[ERROR] SynchronizationAPITests.agedToLostEventShouldBeDeletedBeforeSynchronizationJobByUser:178 Expected: is <1> but: was <0>
The API processes the aged-to-lost event asynchronously, it returns a 201 success without waiting for the event being stored to database:
https://github.com/folio-org/mod-patron-blocks/blob/v1.7.0/src/main/java/org/folio/rest/impl/EventHandlersAPI.java#L88-L99
Therefore the test must wait until the event is in the database.
A similar issue:
[ERROR] UserSummaryServiceTest.shouldAddEvent:55 Expected true