Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Aug 16, 2022
1 parent f1d746d commit bce313a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>java-client</artifactId>
<version>3.0.5</version>
<version>3.3.1</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
import org.testcontainers.couchbase.CouchbaseContainer;

import java.time.Duration;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;

import static java.time.Instant.parse;
import static java.util.Collections.singletonList;
import static net.javacrumbs.shedlock.core.ClockProvider.now;
import static net.javacrumbs.shedlock.provider.couchbase.javaclient3.CouchbaseLockProvider.LOCKED_AT;
import static net.javacrumbs.shedlock.provider.couchbase.javaclient3.CouchbaseLockProvider.LOCKED_BY;
Expand All @@ -59,7 +59,7 @@ public static void startCouchbase () {
container = new CouchbaseContainer().withBucket(new BucketDefinition(BUCKET_NAME));
container.start();

Set<SeedNode> seedNodes = new HashSet<>(Arrays.asList(
Set<SeedNode> seedNodes = new HashSet<>(singletonList(
SeedNode.create(container.getContainerIpAddress(),
Optional.of(container.getBootstrapCarrierDirectPort()),
Optional.of(container.getBootstrapHttpDirectPort()))));
Expand Down

0 comments on commit bce313a

Please sign in to comment.