add test for workers

This commit is contained in:
clowwindy 2014-05-17 15:00:12 +08:00
parent 5c8e603ca6
commit ddbab8f9cd

View file

@ -8,6 +8,7 @@ import select
import struct import struct
import hashlib import hashlib
import string import string
import time
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
target1 = [ target1 = [
@ -105,6 +106,7 @@ try:
ready_count += 1 ready_count += 1
if ready_count == 2 and p3 is None: if ready_count == 2 and p3 is None:
time.sleep(3)
p3 = Popen(['curl', 'http://www.example.com/', '-v', '-L', p3 = Popen(['curl', 'http://www.example.com/', '-v', '-L',
'--socks5-hostname', '127.0.0.1:1080'], shell=False, '--socks5-hostname', '127.0.0.1:1080'], shell=False,
bufsize=0, close_fds=True) bufsize=0, close_fds=True)