Skip to content

Commit

Permalink
Merge pull request #94 from IlyaSkriblovsky/fix-trial-reactor-unclean
Browse files Browse the repository at this point in the history
Trying to fix "reactor unclean" test fails
  • Loading branch information
psi29a committed May 15, 2015
2 parents 46a9bb1 + a21fb13 commit 97bc395
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from twisted.trial import unittest
import txmongo

mongo_host = "localhost"
mongo_host = "127.0.0.1"
mongo_port = 27017


Expand Down
6 changes: 3 additions & 3 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
from twisted.internet import base, defer
import txmongo

mongo_host = "localhost"
mongo_host = "127.0.0.1"
mongo_port = 27017
base.DelayedCall.debug = True


class TestMongoConnection(unittest.TestCase):

def setUp(self):
self.named_conn = txmongo.connection.ConnectionPool("mongodb://localhost/dbname")
self.unnamed_conn = txmongo.connection.ConnectionPool("mongodb://localhost/")
self.named_conn = txmongo.connection.ConnectionPool("mongodb://127.0.0.1/dbname")
self.unnamed_conn = txmongo.connection.ConnectionPool("mongodb://127.0.0.1/")

@defer.inlineCallbacks
def tearDown(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from twisted.trial import unittest
from twisted.internet import base, defer

mongo_host = "localhost"
mongo_host = "127.0.0.1"
mongo_port = 27017
base.DelayedCall.debug = True

Expand Down
8 changes: 4 additions & 4 deletions tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __call__(self, this, *args, **kwargs):

class TestMongoQueries(unittest.TestCase):

timeout = 5
timeout = 15

@defer.inlineCallbacks
def setUp(self):
Expand Down Expand Up @@ -231,7 +231,7 @@ def tearDown(self):

class TestMongoQueriesEdgeCases(unittest.TestCase):

timeout = 5
timeout = 15

@defer.inlineCallbacks
def setUp(self):
Expand Down Expand Up @@ -264,7 +264,7 @@ def tearDown(self):

class TestLimit(unittest.TestCase):

timeout = 5
timeout = 15

@defer.inlineCallbacks
def setUp(self):
Expand Down Expand Up @@ -327,7 +327,7 @@ def tearDown(self):

class TestSkip(unittest.TestCase):

timeout = 5
timeout = 15

@defer.inlineCallbacks
def setUp(self):
Expand Down

0 comments on commit 97bc395

Please sign in to comment.