From 03b82c4530366ebfe41f73fce72d057a6774f794 Mon Sep 17 00:00:00 2001 From: Artem Vysochyn Date: Tue, 27 Apr 2021 10:45:02 +0300 Subject: [PATCH] Disabled tests --- pom.xml | 13 ------------- .../service/reporter/LatencyReporterTest.java | 11 ++++++----- .../trace/service/reporter/TraceReporterTest.java | 14 ++++++++------ 3 files changed, 14 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index 3e01b6a..24e530c 100644 --- a/pom.xml +++ b/pom.xml @@ -157,19 +157,6 @@ - - - - - maven-surefire-plugin - - true - - - - - - deploy2Github diff --git a/src/test/java/io/scalecube/trace/service/reporter/LatencyReporterTest.java b/src/test/java/io/scalecube/trace/service/reporter/LatencyReporterTest.java index 55a143d..0ab5e4b 100644 --- a/src/test/java/io/scalecube/trace/service/reporter/LatencyReporterTest.java +++ b/src/test/java/io/scalecube/trace/service/reporter/LatencyReporterTest.java @@ -6,17 +6,18 @@ import io.scalecube.trace.service.reporter.throughput.ThroughputListenerImpl; import io.scalecube.trace.service.reporter.throughput.ThroughputReporter; import java.time.Duration; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; public class LatencyReporterTest { - private static final String testName = EnviromentVariables.testName("TEST_NAME"); - private static final String commitId = EnviromentVariables.sha("1"); - private static final String owner = EnviromentVariables.owner("scalecube"); - private static final String repo = EnviromentVariables.repo("github-gateway"); - + @Disabled @Test void testPerformance() throws Exception { + final String testName = EnviromentVariables.testName("TEST_NAME"); + final String commitId = EnviromentVariables.sha("1"); + final String owner = EnviromentVariables.owner("scalecube"); + final String repo = EnviromentVariables.repo("github-gateway"); // Measure latency LatencyReporter latency = diff --git a/src/test/java/io/scalecube/trace/service/reporter/TraceReporterTest.java b/src/test/java/io/scalecube/trace/service/reporter/TraceReporterTest.java index b540678..039ef13 100644 --- a/src/test/java/io/scalecube/trace/service/reporter/TraceReporterTest.java +++ b/src/test/java/io/scalecube/trace/service/reporter/TraceReporterTest.java @@ -2,18 +2,20 @@ import io.scalecube.trace.EnviromentVariables; import io.scalecube.trace.TraceReporter; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; class TraceReporterTest { - private static final String owner = EnviromentVariables.owner("scalecube"); - private static final String repo = EnviromentVariables.repo("github-gateway"); - private static final String commitId = EnviromentVariables.sha("1"); - private static final String traceReportUrl = - EnviromentVariables.url("https://scalecube-robokit.exchange.om2.com/traces"); - + @Disabled @Test void testFlow() throws Exception { + final String owner = EnviromentVariables.owner("scalecube"); + final String repo = EnviromentVariables.repo("github-gateway"); + final String commitId = EnviromentVariables.sha("1"); + final String traceReportUrl = + EnviromentVariables.url("https://scalecube-robokit.exchange.om2.com/traces"); + try (TraceReporter reporter = new TraceReporter()) { reporter.addY("latency-1", "latency", 72); reporter.addY("latency-1", "latency", 63);