Permalink
Browse files

Make subscriber protocol test use loseConnection, not abortConnection

Apparently, the txredisapi ci server is running with a pretty old version of Twisted?
  • Loading branch information...
1 parent 29c10dc commit a0c20153ef36d85cef5d33c3e05708ad2211a15a @akgood akgood committed Sep 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_subscriber.py
View
4 tests/test_subscriber.py
@@ -24,11 +24,11 @@ def testDisconnectErrors(self):
conn = self.db._factory.getConnection
# This should return a deferred from the replyQueue; then
- # abortConnection will make it do an errback with a
+ # loseConnection will make it do an errback with a
# ConnectionError instance
d = self.db.subscribe('foo')
- conn.transport.abortConnection()
+ conn.transport.loseConnection()
try:
yield d
self.fail()

0 comments on commit a0c2015

Please sign in to comment.