Skip to content

Commit 4ac02ac

Browse files
committed
Fix tests
1 parent 65e9f03 commit 4ac02ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_txn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ def test_mutate_conflict(self):
328328

329329
txn2.commit()
330330

331-
with self.assertRaises(pydgraph.AbortedError):
332-
_ = txn.mutate(set_obj={'uid': uid, 'name': 'Manish2'})
331+
_ = txn.mutate(set_obj={'uid': uid, 'name': 'Manish2'})
332+
self.assertRaises(pydgraph.AbortedError, txn.commit)
333333

334334
def test_conflict_ignore(self):
335335
"""Tests a mutation with ignore index conflict."""

0 commit comments

Comments
 (0)