Skip to content

Commit

Permalink
Fix ut failed
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Nov 1, 2023
1 parent ee7a524 commit 9e588fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ public void runBefore() {
@Test
public void testTokenCheck() throws UserException {
TokenManager tokenManager = new TokenManager();
tokenManager.start();
String token = tokenManager.acquireToken();
Assert.assertTrue(tokenManager.checkAuthToken(token));
}

@Test
public void testSameToken() throws UserException {
TokenManager tokenManager = new TokenManager();
tokenManager.start();
String token1 = tokenManager.acquireToken();
String token2 = tokenManager.acquireToken();
Assert.assertNotNull(token1);
Expand Down

0 comments on commit 9e588fa

Please sign in to comment.