changeset 235:a8302aa5a495

*** empty log message ***
author kent
date Sun, 31 Aug 2008 19:02:56 +0900
parents 0498425202a4
children 2abd1dc12453
files test/channeltest/testNetworkSimulator.java test/channeltest/testSeMaSlave.java
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/channeltest/testNetworkSimulator.java	Sun Aug 31 19:02:34 2008 +0900
+++ b/test/channeltest/testNetworkSimulator.java	Sun Aug 31 19:02:56 2008 +0900
@@ -15,8 +15,8 @@
 	static public REPLogger logger = REPLogger.singleton();
 
 	public static void main(String[] args){
-		REPServerSocketChannel.isSimulation = false;
-		testNetworkSimulator testns = new testNetworkSimulator(3, 10, 70);
+		REPServerSocketChannel.isSimulation = true;
+		testNetworkSimulator testns = new testNetworkSimulator(3, 12, 90);
 		logger.setLogLevel(5);
 		
 		testns.startTest();
--- a/test/channeltest/testSeMaSlave.java	Sun Aug 31 19:02:34 2008 +0900
+++ b/test/channeltest/testSeMaSlave.java	Sun Aug 31 19:02:56 2008 +0900
@@ -69,7 +69,8 @@
 						REPSocketChannel<String> channel = (REPSocketChannel<String>) key.channel(pack);
 						String packet = channel.read();
 						if (packet==null) continue;
-						if (channel==masterCH){
+						//if (channel==masterCH){
+						if (packet.matches("^SeMa\\d.*")){
 							ns.writeLog("receives String from master ==> `"+packet+"\'", 1);
 							for (ClientInfo ci: cis){
 								if (!packet.matches(".*"+ci.str+".*")) continue;