You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/01/17 11:57:29 UTC

[incubator-plc4x] 01/02: - Disabled one test we simply can't check reliably in case of DNS providers returning default IP addresses for unknown domain names

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit 232bef574fde9923323382f27fd201a35bba0a9f
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Jan 17 12:56:47 2019 +0100

    - Disabled one test we simply can't check reliably in case of DNS providers returning default IP addresses for unknown domain names
---
 .../s7/src/test/java/org/apache/plc4x/java/s7/S7PlcDriverTest.java      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plc4j/drivers/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcDriverTest.java b/plc4j/drivers/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcDriverTest.java
index a93fe0f..76329e9 100644
--- a/plc4j/drivers/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcDriverTest.java
+++ b/plc4j/drivers/s7/src/test/java/org/apache/plc4x/java/s7/S7PlcDriverTest.java
@@ -23,6 +23,7 @@ import org.apache.plc4x.java.api.exceptions.PlcConnectionException;
 import org.apache.plc4x.java.api.exceptions.PlcException;
 import org.apache.plc4x.java.s7.connection.S7PlcConnection;
 import org.apache.plc4x.test.FastTests;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
@@ -53,6 +54,7 @@ public class S7PlcDriverTest {
 
     @Test(expected = PlcConnectionException.class)
     @Category(FastTests.class)
+    @Ignore("This test tends to fail on systems with DNS providers that proivde default IPs")
     public void getConnectionToUnknownHost() throws PlcException {
         new S7PlcDriver().connect("s7://IHopeThisHostDoesntExistAAAAAAAAhhhhhhh/1/2");
     }