# HG changeset patch # User Augie Fackler # Date 1337261094 18000 # Node ID 173065f9b7154e6b8793f1ade648f2ccd86f23b2 # Parent 757d6a862c833226708c41af27e194a0560a4ab7 push test: peek inside svn's pending transaction list on abort This helps us verify that aborting a transaction is being done properly. diff --git a/tests/test_push_command.py b/tests/test_push_command.py --- a/tests/test_push_command.py +++ b/tests/test_push_command.py @@ -134,7 +134,7 @@ class PushTests(test_util.TestBase): finally: if sys.version_info >= (2,6): svnserve.kill() - else: + else: test_util.kill_process(svnserve) def test_push_over_svnserve(self): @@ -487,7 +487,9 @@ class PushTests(test_util.TestBase): 'Outgoing changesets parent is not at subversion ' 'HEAD\n' '(pull again and rebase on a newer revision)') - + # verify that any pending transactions on the server got cleaned up + self.assertEqual([], os.listdir( + os.path.join(self.tmpdir, 'testrepo-1', 'db', 'transactions'))) def suite(): test_classes = [PushTests, ]