Mercurial > hgsubversion
changeset 907:173065f9b715
push test: peek inside svn's pending transaction list on abort
This helps us verify that aborting a transaction is being done
properly.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 17 May 2012 08:24:54 -0500 |
parents | 757d6a862c83 |
children | c4ee11a5d04c |
files | tests/test_push_command.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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, ]