X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=integration_tests%2Freceiver.py;h=0dc5e4a2ec61d17bf5be8694a8000c082b2bc325;hb=148e2699cf55e5619d181c2e46e1f672456a4422;hp=cb5f82c9e800b5c60ea9bed5ebfd57c5d99291ce;hpb=40caa314d23122f0bd25c0e66b65d10303538164;p=ric-plt%2Fa1.git diff --git a/integration_tests/receiver.py b/integration_tests/receiver.py index cb5f82c..0dc5e4a 100644 --- a/integration_tests/receiver.py +++ b/integration_tests/receiver.py @@ -59,5 +59,13 @@ while True: sbuf.contents.mtype = 21024 print("Pre reply summary: {}".format(rmr.message_summary(sbuf))) time.sleep(DELAY) - sbuf = rmr.rmr_rts_msg(mrc, sbuf) - print("Post reply summary: {}".format(rmr.message_summary(sbuf))) + + # try up to 5 times to send back the ack + for _ in range(5): + sbuf = rmr.rmr_rts_msg(mrc, sbuf) + post_reply_summary = rmr.message_summary(sbuf) + print("Post reply summary: {}".format(post_reply_summary)) + if post_reply_summary["message state"] == 10 and post_reply_summary["message status"] == "RMR_ERR_RETRY": + time.sleep(1) + else: + break