From 9e588fa3ab1253aa09c2df82610fe57acaf0ec8a Mon Sep 17 00:00:00 2001 From: Calvin Kirs Date: Wed, 1 Nov 2023 17:21:18 +0800 Subject: [PATCH] Fix ut failed --- .../java/org/apache/doris/load/loadv2/TokenManagerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fe/fe-core/src/test/java/org/apache/doris/load/loadv2/TokenManagerTest.java b/fe/fe-core/src/test/java/org/apache/doris/load/loadv2/TokenManagerTest.java index b592b9df930f74..13ae9b6e44ea40 100644 --- a/fe/fe-core/src/test/java/org/apache/doris/load/loadv2/TokenManagerTest.java +++ b/fe/fe-core/src/test/java/org/apache/doris/load/loadv2/TokenManagerTest.java @@ -34,6 +34,7 @@ public void runBefore() { @Test public void testTokenCheck() throws UserException { TokenManager tokenManager = new TokenManager(); + tokenManager.start(); String token = tokenManager.acquireToken(); Assert.assertTrue(tokenManager.checkAuthToken(token)); } @@ -41,6 +42,7 @@ public void testTokenCheck() throws UserException { @Test public void testSameToken() throws UserException { TokenManager tokenManager = new TokenManager(); + tokenManager.start(); String token1 = tokenManager.acquireToken(); String token2 = tokenManager.acquireToken(); Assert.assertNotNull(token1);