forked from I2P_Developers/i2p.i2p
add TODO, make server thread daemon
This commit is contained in:
@@ -14,6 +14,8 @@ import junit.framework.TestCase;
|
|||||||
|
|
||||||
abstract class StreamingTestBase extends TestCase {
|
abstract class StreamingTestBase extends TestCase {
|
||||||
|
|
||||||
|
// TODO: this may need to start a full router
|
||||||
|
|
||||||
protected abstract Properties getProperties();
|
protected abstract Properties getProperties();
|
||||||
|
|
||||||
protected I2PSession createSession() throws Exception {
|
protected I2PSession createSession() throws Exception {
|
||||||
@@ -55,7 +57,7 @@ abstract class StreamingTestBase extends TestCase {
|
|||||||
protected final Thread runServer(I2PAppContext ctx, I2PSession session) {
|
protected final Thread runServer(I2PAppContext ctx, I2PSession session) {
|
||||||
Thread t = new Thread(getServer(ctx,session));
|
Thread t = new Thread(getServer(ctx,session));
|
||||||
t.setName("servert");
|
t.setName("servert");
|
||||||
t.setDaemon(false);
|
t.setDaemon(true);
|
||||||
t.start();
|
t.start();
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user