Fix tests and update docs with #150 fix.
This commit is contained in:
parent
ab7d0c4cc2
commit
db3a201795
@ -62,6 +62,12 @@ v0.8 (in development)
|
||||
properties may be left out if you don't want the mixer to adjust the settings
|
||||
on your NAD amplifier when Mopidy is started.
|
||||
|
||||
- Fixed :issue:`150` which caused some clients to block Mopidy completely. Bug
|
||||
was caused by some clients sending ``close`` and then shutting down the
|
||||
connection right away. This trigged a situation in which the connection
|
||||
cleanup code would wait for an response that would never come inside the
|
||||
event loop, blocking everything else.
|
||||
|
||||
|
||||
v0.7.3 (2012-08-11)
|
||||
===================
|
||||
|
||||
@ -91,7 +91,7 @@ class ConnectionTest(unittest.TestCase):
|
||||
self.mock.sock = Mock(spec=socket.SocketType)
|
||||
|
||||
network.Connection.stop(self.mock, sentinel.reason)
|
||||
self.mock.actor_ref.stop.assert_called_once_with()
|
||||
self.mock.actor_ref.stop.assert_called_once_with(block=False)
|
||||
|
||||
def test_stop_handles_actor_already_being_stopped(self):
|
||||
self.mock.stopping = False
|
||||
@ -100,7 +100,7 @@ class ConnectionTest(unittest.TestCase):
|
||||
self.mock.sock = Mock(spec=socket.SocketType)
|
||||
|
||||
network.Connection.stop(self.mock, sentinel.reason)
|
||||
self.mock.actor_ref.stop.assert_called_once_with()
|
||||
self.mock.actor_ref.stop.assert_called_once_with(block=False)
|
||||
|
||||
def test_stop_sets_stopping_to_true(self):
|
||||
self.mock.stopping = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user