Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test failure due to timing issues #360

Open
MrCreosote opened this issue Sep 30, 2022 · 0 comments
Open

Fix test failure due to timing issues #360

MrCreosote opened this issue Sep 30, 2022 · 0 comments

Comments

@MrCreosote
Copy link
Member

     [junit] Testcase: globusToken took 0.389 sec
    [junit] 	FAILED
    [junit] incorrect token
    [junit] Expected: is <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3600, client_id=foo}>
    [junit]      but: was <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3599, client_id=foo}>
    [junit] junit.framework.AssertionFailedError: incorrect token
    [junit] Expected: is <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3600, client_id=foo}>
    [junit]      but: was <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3599, client_id=foo}>
    [junit] 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    [junit] 	at us.kbase.test.auth2.service.api.TestModeIntegrationTest.globusToken(TestModeIntegrationTest.java:456)
    [junit] 
    [junit] Testcase: me took 0.393 sec
    [junit] Testcase: clear took 0.416 sec
    [junit] Testcase: setRoles took 0.382 sec
    [junit] Testcase: createAndGetTestUser took 0.396 sec
    [junit] Test us.kbase.test.auth2.service.api.TestModeIntegrationTest FAILED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant