Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1062,13 +1062,6 @@ public static boolean assertCurrentThreadPool(String... permittedThreadPoolNames
return true;
}

public static boolean assertTestThreadPool() {
final var threadName = Thread.currentThread().getName();
final var executorName = EsExecutors.executorName(threadName);
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") : threadName + " is not a test thread";
return true;
}

public static boolean assertInSystemContext(ThreadPool threadPool) {
final var threadName = Thread.currentThread().getName();
assert threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase") || threadPool.getThreadContext().isSystemContext()
Expand Down