[keycloak-dev] Intermittent test failures in SyncProvidersTest.testLDAPSync and CookieTokenStoreAdapterTest.testTokenInCookieRefresh
Stian Thorgersen
stian at redhat.com
Tue Jan 27 02:42:53 EST 2015
----- Original Message -----
> From: "Marek Posolda" <mposolda at redhat.com>
> To: "Stian Thorgersen" <stian at redhat.com>, "keycloak dev" <keycloak-dev at lists.jboss.org>
> Sent: Monday, January 26, 2015 5:28:29 PM
> Subject: Re: [keycloak-dev] Intermittent test failures in SyncProvidersTest.testLDAPSync and
> CookieTokenStoreAdapterTest.testTokenInCookieRefresh
>
> I think I have a fix (despite the fact I did not simulate test failure
> on my laptop ;-)
>
> Commited to master and 1.1.x branches.
>
> It's caused by uncleared offset on org.keycloak.util.Time, which is
> static and shared per the JVM for all tests. I wonder if we should put
> Time.setOffset(0) to the AbstractKeycloakRule.before/after to avoid
> similar issues in the future.
So it was my fault after all, usually is when master breaks ;)
I'll add the Time.setOffset(0) to AbstractKeycloakRule.
>
> Marek
>
> On 26.1.2015 15:48, Marek Posolda wrote:
> > I will try to take a look at those.
> >
> > Marek
> >
> > On 26.1.2015 14:18, Stian Thorgersen wrote:
> >> SyncProvidersTest.testLDAPSync and
> >> CookieTokenStoreAdapterTest.testTokenInCookieRefresh are failing for me
> >> once in a while. Also fails on Jenkins.
> >>
> >> Failed tests:
> >> SyncProvidersTest.testLDAPSync:142->assertUserImported:191
> >> expected:<User5FN[Updated]> but was:<User5FN[]>
> >> CookieTokenStoreAdapterTest.testTokenInCookieRefresh:110 Values should
> >> be different. Actual:
> >> eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiMTBlMjVlNS1mYTIyLTQwMjgtODg0Ny1mYTU4OWMxNzI1NjUiLCJuYW1lIjoiQmlsbCBCdXJrZSIsImVtYWlsIjoiYmJ1cmtlQHJlZGhhdC5jb20iLCJzdWJqZWN0IjoiYjEwZTI1ZTUtZmEyMi00MDI4LTg4NDctZmE1ODljMTcyNTY1IiwiZ2l2ZW5fbmFtZSI6IkJpbG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72XW9HoEAW9_AVA8_w4L51D7D_x7RnFiRa7k2WDaRjlrF9nBQk
> >>
> >>
> >> Anyone know why these are failing?
> >>
> >> _______________________________________________
> >> keycloak-dev mailing list
> >> keycloak-dev at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >
> >
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
More information about the keycloak-dev
mailing list