Skip to content
Snippets Groups Projects
Commit ddeb510d authored by Gregory Szorc's avatar Gregory Szorc
Browse files

testing: remove expectation of error on bad node insert

addgroup() doesn't necessarily validate the hashes of each incoming revision.
This is an optimization that allows delta group application to complete faster.

The fact that revlog raises in this particular test is an implementation detail
due to the way revlogs are testing multiple deltas.

Differential Revision: https://phab.mercurial-scm.org/D5115
parent 6994a8be
No related branches found
No related tags found
No related merge requests found
......@@ -1073,8 +1073,4 @@
fulltext0 = b'foo'
delta0 = mdiff.trivialdiffheader(len(fulltext0)) + fulltext0
deltas = [
(b'\x01' * 20, nullid, nullid, nullid, nullid, delta0, 0),
]
with self._maketransactionfn() as tr:
......@@ -1080,7 +1076,4 @@
with self._maketransactionfn() as tr:
with self.assertRaises(error.StorageError):
f.addgroup(deltas, linkmapper, tr, addrevisioncb=cb)
node0 = f.add(fulltext0, None, tr, 0, nullid, nullid)
f = self._makefilefn()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment