Skip to content

Commit

Permalink
Disable test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Dec 12, 2024
1 parent 342e3ea commit ce72792
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import com.oracle.bmc.http.client.HttpProvider;
import io.micronaut.context.ApplicationContext;
import io.micronaut.core.util.StringUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;

public class NettyManagedTest extends NettyUnmanagedTest {
ApplicationContext ctx;
Expand All @@ -22,4 +25,11 @@ public void tearDown() {
HttpProvider provider() {
return ctx.getBean(HttpProvider.class);
}

@DisabledIfEnvironmentVariable(named = "CI", matches = StringUtils.TRUE,
disabledReason = "It is flaky https://ge.micronaut.io/scans/tests?tests.container=io.micronaut.oraclecloud.httpclient.netty.NettyManagedTest&tests.test=connectionReuse()")
@Test
public void connectionReuse() throws Exception {
super.connectionReuse();
}
}

0 comments on commit ce72792

Please sign in to comment.