Skip to content

Fix test failure due to timing issues #360

@MrCreosote

Description

@MrCreosote
     [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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions