]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SimpleInterfaceMonitor: get rid of self.data_received flag
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 17 Sep 2015 13:52:29 +0000 (15:52 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 24 Sep 2015 15:08:36 +0000 (17:08 +0200)
commita786a4edadcb939065e16dd0503c8e07412151e4
tree798c3c4fe6a6e318fbba0248ab935a8d601c897e
parent9e4627fd359690bc904f301959bc96deb19e768b
SimpleInterfaceMonitor: get rid of self.data_received flag

It's not used anywhere outside tests, and there are better ways to
wait for updates.

The flag was once used to influence the state of activeness for the
monitor, but not anymore [1].

This cleanup also allows us to remove custom _read_stdout from the
monitor and reuse the one inherited from AsyncProcess. Meaning, we
also can safely get rid of another pile of duplicate tests.

[1]: I05faeddd061ab45af51c044a10462c3a57593d4d

Change-Id: I612d492c8f65a70e18f782a5e4d055de5f7948ef
neutron/agent/linux/ovsdb_monitor.py
neutron/tests/functional/agent/linux/test_ovsdb_monitor.py
neutron/tests/unit/agent/linux/test_ovsdb_monitor.py