Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 2, 2024
1 parent a40849a commit 25fe63f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ jobs:
- run: python3 -m pip install pytest -c requirements.txt
working-directory: test/

- run: python3 -m pytest test.py
- run: python3 -m pytest test.py -s
working-directory: test/mrts

test-ee:
Expand Down
6 changes: 6 additions & 0 deletions test/mrts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ def test_abort_api_and_functionality(self, get_status: bool):
_, _, bins = self.as_connection.get(self.keys[0], policy)
assert bins == {self.bin_name: 1}
self.as_connection.put(self.keys[1], {self.bin_name: 2}, policy)
digest = aerospike.calc_digest("test", "demo", self.keys[0])
res = self.as_connection.info_all(f"debug-record:namespace=test;keyd={digest}")
print(res)
digest = aerospike.calc_digest("test", "demo", self.keys[1])
res = self.as_connection.info_all(f"debug-record:namespace=test;keyd={digest}")
print(res)
retval = self.as_connection.abort(transaction=mrt, get_abort_status=get_status)
if get_status:
assert type(retval) is int
Expand Down

0 comments on commit 25fe63f

Please sign in to comment.