We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e9f03 commit 4ac02acCopy full SHA for 4ac02ac
tests/test_txn.py
@@ -328,8 +328,8 @@ def test_mutate_conflict(self):
328
329
txn2.commit()
330
331
- with self.assertRaises(pydgraph.AbortedError):
332
- _ = txn.mutate(set_obj={'uid': uid, 'name': 'Manish2'})
+ _ = txn.mutate(set_obj={'uid': uid, 'name': 'Manish2'})
+ self.assertRaises(pydgraph.AbortedError, txn.commit)
333
334
def test_conflict_ignore(self):
335
"""Tests a mutation with ignore index conflict."""
0 commit comments