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

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


The following commit(s) were added to refs/heads/master by this push:
     new f5e188d  added output to understand the problem with the failing test
f5e188d is described below

commit f5e188d16c6cb98cfc9fff9cd47c233241ce9d34
Author: Sebastian Rühl <sru...@apache.org>
AuthorDate: Thu Feb 22 13:41:16 2018 +0100

    added output to understand the problem with the failing test
---
 .../org/apache/plc4x/java/utils/rawsockets/RawSocketTest.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/plc4j/utils/raw-sockets/src/test/java/org/apache/plc4x/java/utils/rawsockets/RawSocketTest.java
 
b/plc4j/utils/raw-sockets/src/test/java/org/apache/plc4x/java/utils/rawsockets/RawSocketTest.java
index 36674f4..de117fd 100644
--- 
a/plc4j/utils/raw-sockets/src/test/java/org/apache/plc4x/java/utils/rawsockets/RawSocketTest.java
+++ 
b/plc4j/utils/raw-sockets/src/test/java/org/apache/plc4x/java/utils/rawsockets/RawSocketTest.java
@@ -52,9 +52,11 @@ public class RawSocketTest {
         // (The loopback device doesn't have a MAC address)
         // and ping itself.
         for (PcapNetworkInterface dev : Pcaps.findAllDevs()) {
-            if(!dev.getLinkLayerAddresses().isEmpty()) {
+            System.out.println("Trying to read on device " + dev);
+            if (!dev.getLinkLayerAddresses().isEmpty()) {
                 for (PcapAddress pcapAddress : dev.getAddresses()) {
-                    if(pcapAddress.getAddress() instanceof Inet4Address) {
+                    if (pcapAddress.getAddress() instanceof Inet4Address) {
+                        System.out.println("Trying to connect on PcapAddress " 
+ pcapAddress);
                         rawSocket.connect("plc4x.apache.org");
                     }
                 }
@@ -62,7 +64,7 @@ public class RawSocketTest {
         }
 
         // Simple ICMP (Ping packet)
-        byte[] rawData = new byte[] {
+        byte[] rawData = new byte[]{
             // Type (ICMP Ping Request) & Code (just 0)
             (byte) 0x08, (byte) 0x00,
             // Checksum

-- 
To stop receiving notification emails like this one, please contact
sru...@apache.org.

Reply via email to