Skip to content

Commit a863655

Browse files
committed
test(oidc): add grace period for access token refresh
1 parent e28d1f9 commit a863655

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/it/java/io/weaviate/integration/OIDCSupportITest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ public void test_bearerToken() throws Exception {
6666
var auth = SpyTokenProvider.spyOn(Authentication.bearerToken(t.accessToken(), t.refreshToken(), 0));
6767
pingWeaviate(wcsContainer, auth);
6868

69-
var newT = auth.getToken();
70-
Assertions.assertThat(newT.accessToken())
71-
.as("expect access_token was refreshed")
72-
.isNotEqualTo(t.accessToken());
69+
eventually(() -> auth.getToken() != t, 100, 5, "expect access_token was refreshed");
7370

7471
// Check that the new token authenticates requests.
7572
pingWeaviate(wcsContainer, auth);

0 commit comments

Comments
 (0)