Skip to content

Commit

Permalink
Increase lock timeout acquisition
Browse files Browse the repository at this point in the history
InfinispanClusteredAsynchronousLockTest fails randomly on CI because the timer fires before the remaining node can acquire the lock

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
  • Loading branch information
tsegismont committed Nov 15, 2024
1 parent f25e66c commit 4c26cdd
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@

import io.vertx.Lifecycle;
import io.vertx.LoggingTestWatcher;
import io.vertx.core.*;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.spi.cluster.ClusterManager;
import io.vertx.ext.cluster.infinispan.InfinispanClusterManager;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;

import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

/**
Expand Down Expand Up @@ -74,6 +75,11 @@ public void testLockReleasedForKilledNode() throws Exception {
super.testLockReleasedForKilledNode();
}

@Override
protected long getLockTimeout() {
return 30000;
}

@Override
protected void close(List<Vertx> clustered) throws Exception {
Lifecycle.close(clustered);
Expand Down

0 comments on commit 4c26cdd

Please sign in to comment.