test fixed

pull/6396/head
Nikita Koksharov 2 weeks ago
parent 46e6fc1307
commit 7ea88fbce2

@ -380,7 +380,7 @@ public class RedissonScheduledExecutorServiceTest extends RedisDockerTest {
RScheduledExecutorService executor = redisson.getExecutorService("test", ExecutorOptions.defaults().taskRetryInterval(2, TimeUnit.SECONDS)); RScheduledExecutorService executor = redisson.getExecutorService("test", ExecutorOptions.defaults().taskRetryInterval(2, TimeUnit.SECONDS));
executor.schedule(new ScheduledRunnableTask("executed1"), CronSchedule.of("0/5 * * * * ?")); executor.schedule(new ScheduledRunnableTask("executed1"), CronSchedule.of("0/5 * * * * ?"));
executor.schedule(new ScheduledRunnableTask("executed2"), CronSchedule.of("0/1 * * * * ?")); executor.schedule(new ScheduledRunnableTask("executed2"), CronSchedule.of("0/1 * * * * ?"));
Thread.sleep(30500); Thread.sleep(30100);
assertThat(redisson.getAtomicLong("executed1").get()).isEqualTo(6); assertThat(redisson.getAtomicLong("executed1").get()).isEqualTo(6);
assertThat(redisson.getAtomicLong("executed2").get()).isEqualTo(30); assertThat(redisson.getAtomicLong("executed2").get()).isEqualTo(30);
} }

Loading…
Cancel
Save