FINRAOS / DataGenerator

DataGenerator is a Java library for systematically producing large volumes of data. DataGenerator frames data production as a modeling problem, with a user providing a model of dependencies among variables and the library traversing the model to produce relevant data sets.
http://finraos.github.io/DataGenerator
Apache License 2.0
161 stars 170 forks source link

Test fails depending on network settings. #292

Closed yukaReal closed 8 years ago

yukaReal commented 8 years ago

Depending on network settings 'testSendRequestSync' test fails or passes.

[http://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception]: It seems that InetAddress.getLocalHost() ignores the /etc/resolv.conf but only looks at the /etc/hosts file

This is changed in java 7 compare to java 6.

Log: Results :

Failed tests: testSendRequestSync(org.finra.datagenerator.consumer.DataConsumerTest): expected:<[test1]> but was:<[]> testSendRequestNoHandling(org.finra.datagenerator.consumer.DataConsumerTest): expected:<[test1]> but was:<[]> testSendRequestFromWriter(org.finra.datagenerator.consumer.DataConsumerTest): expected:<5> but was:<0>

Tests run: 195, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Data Generator Parent POM .......................... SUCCESS [ 1.464 s] [INFO] Data Generator Common Utils ........................ SUCCESS [ 16.370 s] [INFO] Data Generator Core Library ........................ FAILURE [02:48 min] [INFO] Data Generator Example - Default Distributor ....... SKIPPED [INFO] Data Generator Example - HDFS Distributor .......... SKIPPED [INFO] Data Generator Simple CSV .......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE

yukaReal commented 8 years ago

See https://github.com/FINRAOS/DataGenerator/pull/293

mibrahim commented 8 years ago

Fixed and merged by #293