File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
server/src/main/java/org/elasticsearch/threadpool Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1062,13 +1062,6 @@ public static boolean assertCurrentThreadPool(String... permittedThreadPoolNames
10621062 return true ;
10631063 }
10641064
1065- public static boolean assertTestThreadPool () {
1066- final var threadName = Thread .currentThread ().getName ();
1067- final var executorName = EsExecutors .executorName (threadName );
1068- assert threadName .startsWith ("TEST-" ) || threadName .startsWith ("LuceneTestCase" ) : threadName + " is not a test thread" ;
1069- return true ;
1070- }
1071-
10721065 public static boolean assertInSystemContext (ThreadPool threadPool ) {
10731066 final var threadName = Thread .currentThread ().getName ();
10741067 assert threadName .startsWith ("TEST-" ) || threadName .startsWith ("LuceneTestCase" ) || threadPool .getThreadContext ().isSystemContext ()
You can’t perform that action at this time.
0 commit comments