You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2021/05/31 12:02:07 UTC

[shardingsphere] branch master updated: Ignore ScalingIT for NPE reason (#10591)

This is an automated email from the ASF dual-hosted git repository.

menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7428cbe  Ignore ScalingIT for NPE reason (#10591)
7428cbe is described below

commit 7428cbe5b16d3cbd7a51f548dbcbaaab7271d17b
Author: Liang Zhang <te...@163.com>
AuthorDate: Mon May 31 20:01:24 2021 +0800

    Ignore ScalingIT for NPE reason (#10591)
---
 .../integration/scaling/test/mysql/ScalingIT.java           | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/shardingsphere-test/shardingsphere-integration-scaling-test/shardingsphere-integration-scaling-test-mysql/src/test/java/org/apache/shardingsphere/integration/scaling/test/mysql/ScalingIT.java b/shardingsphere-test/shardingsphere-integration-scaling-test/shardingsphere-integration-scaling-test-mysql/src/test/java/org/apache/shardingsphere/integration/scaling/test/mysql/ScalingIT.java
index 3429a67..68a9e8f 100644
--- a/shardingsphere-test/shardingsphere-integration-scaling-test/shardingsphere-integration-scaling-test-mysql/src/test/java/org/apache/shardingsphere/integration/scaling/test/mysql/ScalingIT.java
+++ b/shardingsphere-test/shardingsphere-integration-scaling-test/shardingsphere-integration-scaling-test-mysql/src/test/java/org/apache/shardingsphere/integration/scaling/test/mysql/ScalingIT.java
@@ -19,17 +19,18 @@ package org.apache.shardingsphere.integration.scaling.test.mysql;
 
 import groovy.lang.Tuple2;
 import lombok.SneakyThrows;
-import lombok.extern.slf4j.Slf4j;
 import org.apache.shardingsphere.integration.scaling.test.mysql.env.IntegrationTestEnvironment;
 import org.apache.shardingsphere.integration.scaling.test.mysql.fixture.FixtureWriteThread;
 import org.apache.shardingsphere.integration.scaling.test.mysql.util.ExecuteUtil;
 import org.apache.shardingsphere.integration.scaling.test.mysql.util.ScalingUtil;
 import org.apache.shardingsphere.integration.scaling.test.mysql.util.TargetDataSourceUtil;
+import org.junit.Ignore;
 import org.junit.Test;
 
+import java.io.IOException;
+
 import static org.junit.Assert.assertTrue;
 
-@Slf4j
 public final class ScalingIT {
     
     private static final long TIMEOUT_MS = 2 * 60 * 1000;
@@ -40,9 +41,9 @@ public final class ScalingIT {
     
     private final FixtureWriteThread fixtureWriteThread = new FixtureWriteThread(TIMEOUT_MS, 1000);
     
-    @SneakyThrows
+    @Ignore
     @Test
-    public void assertScaling() {
+    public void assertScaling() throws InterruptedException {
         if (IntegrationTestEnvironment.getInstance().isEnvironmentPrepared()) {
             IntegrationTestEnvironment.getInstance().waitForEnvironmentReady();
             fixtureWriteThread.start();
@@ -55,7 +56,7 @@ public final class ScalingIT {
         }
     }
     
-    @SneakyThrows
+    @SneakyThrows(IOException.class)
     private String assertStartJob() {
         String configurations = TargetDataSourceUtil.createDockerConfigurations();
         Tuple2<Boolean, String> response = ScalingUtil.getInstance().startJob(configurations);
@@ -69,7 +70,7 @@ public final class ScalingIT {
         }, (int) (TIMEOUT_MS - WAIT_MS_BEFORE_START_JOB) / (10 * 1000), 10 * 1000).execute();
     }
     
-    @SneakyThrows
+    @SneakyThrows(IOException.class)
     private void assertJobCheck(final String jobId) {
         Tuple2<Boolean, Boolean> checkResult = ScalingUtil.getInstance().getJobCheckResult(jobId);
         assertTrue(checkResult.getFirst());