Browse Source

YARN-11818. Fix "submitted by user jenkins to unknown queue: default" error in hadoop-yarn-client tests. (#7675) Contributed by Shilun Fan.

Reviewed-by: Chris Nauroth <cnauroth@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
slfan1989 1 week ago
parent
commit
2ae4de8b68

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestSchedConfCLI.java

@@ -23,7 +23,7 @@ import org.glassfish.jersey.jettison.JettisonFeature;
 import org.glassfish.jersey.server.ResourceConfig;
 import org.glassfish.jersey.test.JerseyTest;
 import org.glassfish.jersey.test.TestProperties;
-import org.junit.After;
+import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.Timeout;
@@ -156,7 +156,7 @@ public class TestSchedConfCLI extends JerseyTest {
     config.setMaximumCapacity(a, 100f);
   }
 
-  @After
+  @AfterEach
   public void cleanUp() throws Exception {
     if (rm != null) {
       rm.stop();