Changeset 640
- Timestamp:
- 01/02/08 21:55:09 (11 months ago)
- Files:
-
- version_0/tests/test_epoll.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/tests/test_epoll.rb
r606 r640 31 31 $:.unshift "../lib" 32 32 require 'eventmachine' 33 33 require 'test/unit' 34 34 35 35 … … 149 149 # to run 100 times. Not sure where that lower connection-limit is coming from in 150 150 # pure Ruby. 151 File.unlink("./xxx.chain") 152 EM.start_unix_domain_server "./xxx.chain", TestEchoServer 151 # Let's not sweat the Unix-ness of the filename, since this test can't possibly 152 # work on Windows anyway. 153 # 154 fn = "/tmp/xxx.chain" 155 File.unlink(fn) if File.exist?(fn) 156 EM.start_unix_domain_server fn, TestEchoServer 153 157 $n = 0 154 158 $max = 0 155 159 50.times { 156 EM.connect_unix_domain( "./xxx.chain", TestEchoClient) {$n += 1}160 EM.connect_unix_domain(fn, TestEchoClient) {$n += 1} 157 161 } 158 162 } … … 162 166 163 167 end 168