You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2021/12/15 08:25:04 UTC

[incubator-inlong] branch master updated: [INLONG-1995] [Bug] Compile Audit-SDK and report TestNGException

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

healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new e1fe22c  [INLONG-1995] [Bug] Compile Audit-SDK and report TestNGException
e1fe22c is described below

commit e1fe22c29e8d5cef31e3bfdddb7a41146fcb554a
Author: doleyzi <43...@users.noreply.github.com>
AuthorDate: Wed Dec 15 16:22:29 2021 +0800

    [INLONG-1995] [Bug] Compile Audit-SDK and report TestNGException
---
 inlong-audit/audit-sdk/pom.xml                                    | 4 ++--
 .../test/java/org/apache/inlong/audit/send/SenderChannelTest.java | 8 --------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/inlong-audit/audit-sdk/pom.xml b/inlong-audit/audit-sdk/pom.xml
index 2657bd6..2009ffe 100644
--- a/inlong-audit/audit-sdk/pom.xml
+++ b/inlong-audit/audit-sdk/pom.xml
@@ -36,7 +36,7 @@
         <compiler.source>1.8</compiler.source>
         <compiler.target>1.8</compiler.target>
         <netty.version>3.8.0.Final</netty.version>
-        <junit.version>4.4</junit.version>
+        <junit.version>4.13</junit.version>
         <protobuf.version>3.19.1</protobuf.version>
         <commons.version>3.0</commons.version>
     </properties>
@@ -61,7 +61,7 @@
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>${junit.version}</version>
-            <scope>compile</scope>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.inlong</groupId>
diff --git a/inlong-audit/audit-sdk/src/test/java/org/apache/inlong/audit/send/SenderChannelTest.java b/inlong-audit/audit-sdk/src/test/java/org/apache/inlong/audit/send/SenderChannelTest.java
index c883e6d..8e44c2d 100644
--- a/inlong-audit/audit-sdk/src/test/java/org/apache/inlong/audit/send/SenderChannelTest.java
+++ b/inlong-audit/audit-sdk/src/test/java/org/apache/inlong/audit/send/SenderChannelTest.java
@@ -20,7 +20,6 @@ package org.apache.inlong.audit.send;
 import org.apache.inlong.audit.util.Encoder;
 import org.apache.inlong.audit.util.IpPort;
 import org.jboss.netty.bootstrap.ClientBootstrap;
-import org.jboss.netty.channel.Channel;
 import org.jboss.netty.channel.ChannelFuture;
 import org.jboss.netty.channel.ChannelPipeline;
 import org.jboss.netty.channel.Channels;
@@ -32,7 +31,6 @@ import org.slf4j.LoggerFactory;
 import java.util.concurrent.Executors;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 public class SenderChannelTest {
@@ -92,10 +90,4 @@ public class SenderChannelTest {
         String toString = senderChannel.toString();
         assertEquals(toString, "0.0.0.0:54041");
     }
-
-    @Test
-    public void getChannel() {
-        Channel channel = senderChannel.getChannel();
-        assertFalse(channel.getRemoteAddress().toString().equals("0.0.0.0:54041"));
-    }
 }
\ No newline at end of file