]> WPIA git - gigi.git/commitdiff
Fix: a bug that caused regression tests to hang.
authorFelix Dörre <felix@dogcraft.de>
Sun, 22 Feb 2015 16:45:22 +0000 (17:45 +0100)
committerFelix Dörre <felix@dogcraft.de>
Sun, 22 Feb 2015 16:46:44 +0000 (17:46 +0100)
tests/org/cacert/gigi/testUtils/ManagedTest.java
tests/org/cacert/gigi/testUtils/TestEmailReciever.java

index 8f6e6c5d44f360301e6efd0f5e323583bcc4081f..d9fb31e77fa2168dbc0e82cb642998f61aeff4d5 100644 (file)
@@ -141,6 +141,7 @@ public class ManagedTest extends ConfiguredTest {
                 throw new Error("Server startup failed");
             }
             ter = new TestEmailReciever(new InetSocketAddress("localhost", 8473));
+            ter.start();
             SimpleSigner.runSigner();
         } catch (IOException e) {
             throw new Error(e);
index 7cb410d8e2ee15424f6aeba4ca5d289efe93764d..b47133b7da2039f1ff8e9b852ec4112f9248c51e 100644 (file)
@@ -98,7 +98,7 @@ public class TestEmailReciever extends EmailProvider implements Runnable {
     }
 
     public void start() {
-        new Thread(this).start();
+        new Thread(this, "Mail reciever").start();
     }
 
     LinkedBlockingQueue<TestMail> mails = new LinkedBlockingQueue<TestEmailReciever.TestMail>();