You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Anton Mironenko <am...@amdocs.com> on 2017/08/01 14:48:58 UTC

2 unit tests fail in geode-core

Hello,
2 unit tests fail in geode-core on the latest commit 9d59402b71beea84199c79399aa0260955a19d2c (August 1).
Whereas all unit tests passed on aa4878ef19d27a78454dc10b451199f088a2f37d (July 18).

What is an easiest way to fix it?

gradlew geode-core:test
...
org.apache.geode.distributed.LocatorLauncherTest > testSetBindAddressToNonLocalHost FAILED
    java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<org.junit.ComparisonFailure>

        Caused by:
        org.junit.ComparisonFailure: expected:<[yahoo.com is not an address for this machine].> but was:<[The hostname/IP address to which the Locator will be bound is unknown].>
            at org.junit.Assert.assertEquals(Assert.java:115)
            at org.junit.Assert.assertEquals(Assert.java:144)
            at org.apache.geode.distributed.LocatorLauncherTest.testSetBindAddressToNonLocalHost(LocatorLauncherTest.java:167)

org.apache.geode.distributed.ServerLauncherTest > testSetServerBindAddressToNonLocalHost FAILED
   java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<org.junit.ComparisonFailure>

        Caused by:
        org.junit.ComparisonFailure: expected:<[yahoo.com is not an address for this machine].> but was:<[The hostname/IP address to which the Server will be bound is unknown].>

Anton Mironenko
Software Architect
Amdocs ASP team

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>

Re: 2 unit tests fail in geode-core

Posted by Kirk Lund <kl...@pivotal.io>.
I actually have a change that will be ready to merge to develop soon in
which I've rewritten LocatorLauncherTest and ServerLauncherTest. The
changes I have will fix these two failures that you're seeing.

I'm not aware of any recent changes that would've broken these two tests --
the two bind address tests that use yahoo.com already had bugs filed from a
similar intermittent failure during Geode Nightly Builds.

On Tue, Aug 1, 2017 at 8:59 AM, Anton Mironenko <am...@amdocs.com>
wrote:

> Hi Nabarun,
> My connectivity to the Internet is done via HTTP proxy. Maybe this can be
> the reason. But it is not an excuse for a test not to pass.
> Two weeks ago the tests passed, and now they don't. Seems like something
> was broken in the code.
>
> BR,
> Anton
>
> -----Original Message-----
> From: Nabarun Nag [mailto:nnag@apache.org]
> Sent: Tuesday, August 01, 2017 18:06
> To: dev@geode.apache.org
> Subject: Re: 2 unit tests fail in geode-core
>
> Hi Anton,
>
> I was able to reproduce the issue if I shut down my wifi and remove my
> ethernet cable from my Mac [no network connections active / on]. Once wifi
> is switched on or ethernet is connected to the machine the tests pass.
>
> Regards
> Nabarun Nag
>
> > On Aug 1, 2017, at 7:48 AM, Anton Mironenko <am...@amdocs.com>
> wrote:
> >
> > gradlew geode-core:test
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement,
>
> you may review at https://www.amdocs.com/about/email-disclaimer <
> https://www.amdocs.com/about/email-disclaimer>
>
>

RE: 2 unit tests fail in geode-core

Posted by Anton Mironenko <am...@amdocs.com>.
Hi Nabarun,
My connectivity to the Internet is done via HTTP proxy. Maybe this can be the reason. But it is not an excuse for a test not to pass.
Two weeks ago the tests passed, and now they don't. Seems like something was broken in the code.

BR, 
Anton

-----Original Message-----
From: Nabarun Nag [mailto:nnag@apache.org] 
Sent: Tuesday, August 01, 2017 18:06
To: dev@geode.apache.org
Subject: Re: 2 unit tests fail in geode-core

Hi Anton,

I was able to reproduce the issue if I shut down my wifi and remove my ethernet cable from my Mac [no network connections active / on]. Once wifi is switched on or ethernet is connected to the machine the tests pass.

Regards
Nabarun Nag

> On Aug 1, 2017, at 7:48 AM, Anton Mironenko <am...@amdocs.com> wrote:
> 
> gradlew geode-core:test

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer <https://www.amdocs.com/about/email-disclaimer>


Re: 2 unit tests fail in geode-core

Posted by Nabarun Nag <nn...@apache.org>.
Hi Anton,

I was able to reproduce the issue if I shut down my wifi and remove my ethernet cable from my Mac [no network connections active / on]. Once wifi is switched on or ethernet is connected to the machine the tests pass.

Regards
Nabarun Nag

> On Aug 1, 2017, at 7:48 AM, Anton Mironenko <am...@amdocs.com> wrote:
> 
> gradlew geode-core:test