Changeset 5515

Show
Ignore:
Timestamp:
06/16/12 13:12:22 (7 years ago)
Author:
nitin
Message:

added few sleeps between send and recv, so that it works on every machine

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/tests/ut_lind_net_recvfrom.py

    r5514 r5515  
    4545      + " got " + str(len(msg[2])) + " bytes." 
    4646  except Exception, e: 
    47     print 'TEST:- W:100, P:100, R:100 : ' + e 
     47    print 'TEST:- W:100, P:100, R:100 : ', e 
     48 
     49  emultimer.sleep(0.2) 
    4850 
    4951  #Process second test... 
     
    5961      + " got " + str(len(msg[2])) + " bytes." 
    6062  except Exception, e: 
    61     print 'Test:- W:100, R:20, P:20, R:80 : ' + e 
     63    print 'Test:- W:100, R:20, P:20, R:80 : ', e 
     64 
     65  emultimer.sleep(0.2) 
    6266 
    6367  #Process thrid test... 
     
    8387      + " got " + str(len(msg[2])) + " bytes." 
    8488  except Exception, e: 
    85     print 'Test:- W:100, Peek several times : ' + e 
     89    print 'Test:- W:100, Peek several times : ', e 
     90 
     91  emultimer.sleep(0.2) 
    8692 
    8793  #Process fourth test... 
     
    9197      + " got " + str(len(msg[2])) + " bytes." 
    9298  except Exception, e: 
    93     print 'Test:- W:100 P:50 : ' + e 
     99    print 'Test:- W:100 P:50 : ', e 
    94100   
    95101  #Gracefully close the socket