Skip to content

Commit

Permalink
fix library tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydeluca committed Oct 17, 2023
1 parent 824bcd2 commit a57a7dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class LettuceSyncClientTest extends AbstractLettuceSyncClientTest {

@RegisterExtension
static InstrumentationExtension testing = LibraryInstrumentationExtension.create();
static InstrumentationExtension agentTesting = LibraryInstrumentationExtension.create();

@Override
public InstrumentationExtension getInstrumentationExtension() {
return testing;
return agentTesting;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class AbstractLettuceClientTest {
protected static final Logger logger = LoggerFactory.getLogger(AbstractLettuceClientTest.class);

@RegisterExtension
static InstrumentationExtension agentTesting = AgentInstrumentationExtension.create();
public static InstrumentationExtension agentTesting = AgentInstrumentationExtension.create();

public InstrumentationExtension getInstrumentationExtension() {
return agentTesting;
Expand All @@ -49,7 +49,7 @@ public InstrumentationExtension getInstrumentationExtension() {
protected static int port;
protected static String embeddedDbUri;

protected static ContainerConnection newContainerConnection() {
protected ContainerConnection newContainerConnection() {
GenericContainer<?> server =
new GenericContainer<>("redis:6.2.3-alpine")
.withExposedPorts(6379)
Expand All @@ -60,7 +60,7 @@ protected static ContainerConnection newContainerConnection() {

long serverPort = server.getMappedPort(6379);

RedisClient client = RedisClient.create("redis://" + host + ":" + serverPort + "/" + DB_INDEX);
RedisClient client = createClient("redis://" + host + ":" + serverPort + "/" + DB_INDEX);
client.setOptions(LettuceTestUtil.CLIENT_OPTIONS);
cleanup.deferCleanup(client::shutdown);

Expand Down

0 comments on commit a57a7dd

Please sign in to comment.