Skip to content
Permalink
Browse files

feat(parser): add raw_bytes_in_sep to cli

  • Loading branch information...
hanxiao committed Sep 25, 2019
1 parent 2fc0710 commit a2f10589df67f59e1825af9dd77975236060e50d
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/test_raw_bytes_send.py
@@ -47,6 +47,15 @@ def test_send_recv_raw_bytes(self):
print('.', end='')
print('checked %d docs' % len(msg.request.index.docs))

def test_send_recv_response(self):
with ZmqClient(self.c1_args) as c1, ZmqClient(self.c2_args) as c2:
msg = gnes_pb2.Message()
msg.envelope.client_id = c1.args.identity
msg.response.train.status = 2
c1.send_message(msg, raw_bytes_in_separate=True)
r_msg = c2.recv_message()
self.assertEqual(msg.response.train.status, r_msg.response.train.status)

def test_benchmark(self):
all_msgs = []
num_msg = 20

0 comments on commit a2f1058

Please sign in to comment.
You can’t perform that action at this time.