Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 2, 2024
1 parent 691c4c4 commit cf6d798
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mrts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def test_commit_api_and_functionality(self, get_status: bool):

retval = self.as_connection.commit(transaction=mrt, get_commit_status=get_status)
if get_status:
assert retval is None
else:
assert type(retval) is int
else:
assert retval is None

# Were the writes committed?
for i in range(len(self.keys)):
Expand All @@ -62,9 +62,9 @@ def test_abort_api_and_functionality(self, get_status: bool):
self.as_connection.put(self.keys[1], {self.bin_name: 2}, policy)
retval = self.as_connection.abort(transaction=mrt, get_abort_status=get_status)
if get_status:
assert retval is None
else:
assert type(retval) is int
else:
assert retval is None

# Test that MRT didn't go through
for i in range(len(self.keys)):
Expand Down

0 comments on commit cf6d798

Please sign in to comment.