Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
feat(parser): add raw_bytes_in_sep to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 25, 2019
1 parent 2fc0710 commit a2f1058
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_raw_bytes_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2f1058

Please sign in to comment.