Commits

Geoff Salmon committed ef765ba

fix zmq test that sometimes called recv on closed skt

  • Participants
  • Parent commits 48bef6c
  • Branches zmq-multi-send-recv-simple

Comments (0)

Files changed (1)

tests/zmq_test.py

             while req.recv() != 'done':
                 tx_i += 1
                 req.send(str(tx_i))
+            done.send(0)
 
         def rx():
             while True:
                 rx_i = rep.recv()
                 if rx_i == "1000":
                     rep.send('done')
-                    sleep()
-                    done.send(0)
                     break
                 rep.send('i')
         spawn(tx)