@@ -115,6 +115,7 @@ class MRTest(RDMATestCase):
access = e.IBV_ACCESS_LOCAL_WRITE | e.IBV_ACCESS_REMOTE_WRITE
self.server.rereg_mr(flags=e.IBV_REREG_MR_CHANGE_ACCESS, access=access)
self.client.rereg_mr(flags=e.IBV_REREG_MR_CHANGE_ACCESS, access=access)
+ self.sync_remote_attr()
u.rdma_traffic(**self.traffic_args, send_op=e.IBV_WR_RDMA_WRITE)
def test_mr_rereg_access_bad_flow(self):
@@ -129,6 +130,7 @@ class MRTest(RDMATestCase):
u.rdma_traffic(**self.traffic_args, send_op=e.IBV_WR_RDMA_WRITE)
access = e.IBV_ACCESS_LOCAL_WRITE
self.server.rereg_mr(flags=e.IBV_REREG_MR_CHANGE_ACCESS, access=access)
+ self.sync_remote_attr()
with self.assertRaisesRegex(PyverbsRDMAError, 'Remote access error'):
u.rdma_traffic(**self.traffic_args, send_op=e.IBV_WR_RDMA_WRITE)