Mercurial > hg > RemoteEditor > REPSessionManager
diff test/channeltest/testNetworkSimulator.java @ 196:b85525d83b46
*** empty log message ***
author | kono |
---|---|
date | Fri, 29 Aug 2008 21:39:13 +0900 |
parents | d03e34861a26 |
children | 4c0a94836357 |
line wrap: on
line diff
--- a/test/channeltest/testNetworkSimulator.java Fri Aug 29 21:19:14 2008 +0900 +++ b/test/channeltest/testNetworkSimulator.java Fri Aug 29 21:39:13 2008 +0900 @@ -15,7 +15,7 @@ static public REPLogger logger = REPLogger.singleton(); public static void main(String[] args){ - REPServerSocketChannel.isSimulation = true; + REPServerSocketChannel.isSimulation = false; testNetworkSimulator testns = new testNetworkSimulator(1, 0, 2); logger.setLogLevel(5); @@ -54,6 +54,12 @@ sm.start(); } logger.writeLog("all slave SessionManagers were created",1); + synchronized (this) { + try { + wait(100); + } catch (InterruptedException e) { + } + } for (int i=0; i<NoEditor; i++){ testEditor te = new testEditor("Editor"+i,host, masterPort+rand.nextInt(NoSemaMaster+NoSemaSlave)); editorList.add(te); @@ -66,11 +72,15 @@ for (testEditor te: editorList) te.join(); logger.writeLog("main: all clients exited."); + for (testSeMa te: semaList) + te.join(); + for (testSeMaSlave te: semasList) + te.join(); } catch (InterruptedException e) { e.printStackTrace(); } - System.exit(0); + //System.exit(0); } public void Checker(){