-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2021.19
-
Component/s: Events / Works
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #59
-
Story Points:1
[2022-04-07T11:07:28.578Z] [ERROR] Tests run: 24, Failures: 1, Errors: 0, Skipped: 5, Time elapsed: 13.409 s <<< FAILURE! - in org.nuxeo.ecm.core.redis.TestRedisWorkManager [2022-04-07T11:07:28.578Z] [ERROR] testWorkManagerCancelScheduling(org.nuxeo.ecm.core.redis.TestRedisWorkManager) Time elapsed: 4.548 s <<< FAILURE! [2022-04-07T11:07:28.578Z] java.lang.AssertionError: expected:<[SleepWork, 1, 2, 24, 0]> but was:<[SleepWork, 2, 1, 24, 0]> [2022-04-07T11:07:28.578Z] at org.junit.Assert.fail(Assert.java:89) [2022-04-07T11:07:28.578Z] at org.junit.Assert.failNotEquals(Assert.java:835) [2022-04-07T11:07:28.578Z] at org.junit.Assert.assertEquals(Assert.java:120) [2022-04-07T11:07:28.578Z] at org.junit.Assert.assertEquals(Assert.java:146) [2022-04-07T11:07:28.578Z] at org.nuxeo.ecm.core.work.AbstractWorkManagerTest.assertMetrics(AbstractWorkManagerTest.java:252) [2022-04-07T11:07:28.578Z] at org.nuxeo.ecm.core.work.AbstractWorkManagerTest$MetricsTracker.assertDiff(AbstractWorkManagerTest.java:228) [2022-04-07T11:07:28.578Z] at org.nuxeo.ecm.core.work.AbstractWorkManagerTest.testWorkManagerCancelScheduling(AbstractWorkManagerTest.java:379)
This means that after 0.5s a Work was still scheduled instead of running.
the default duration for Redis should be increased to avoid this.