From: David ‘Bombe’ Roden Date: Sun, 5 Jul 2015 20:11:31 +0000 (+0200) Subject: Create distinctive thread names X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=99866f036f2d1d991cab599d9102a198e15d37d8;p=jFCPlib.git Create distinctive thread names --- diff --git a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java index 4670828..020ee33 100644 --- a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java +++ b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java @@ -32,7 +32,8 @@ public class DefaultFcpClientTest { private static final String INSERT_URI = "SSK@RVCHbJdkkyTCeNN9AYukEg76eyqmiosSaNKgE3U9zUw,7SHH53gletBVb9JD7nBsyClbLQsBubDPEIcwg908r7Y,AQECAAE/"; private static final String REQUEST_URI = "SSK@wtbgd2loNcJCXvtQVOftl2tuWBomDQHfqS6ytpPRhfw,7SHH53gletBVb9JD7nBsyClbLQsBubDPEIcwg908r7Y,AQACAAE/"; - private final ExecutorService threadPool = Executors.newCachedThreadPool(); + private static int threadCounter = 0; + private final ExecutorService threadPool = Executors.newCachedThreadPool((r) -> new Thread(r, "Test-Thread-" + threadCounter++)); private final FakeTcpServer fcpServer; private final DefaultFcpClient fcpClient;