Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Nov 23, 2024
1 parent 9372067 commit b740b69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scalardb/test/scalardb/transfer_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
(def mock-transaction
(reify
DistributedTransaction
(^String getId [_] "dummy-tx-id")
(^Optional get [_ ^Get g] (mock-get g))
(^void put [_ ^Put p] (mock-put p))
(^void commit [_] (swap! commit-count inc))))
Expand All @@ -65,6 +66,7 @@
(def mock-transaction-throws-exception
(reify
DistributedTransaction
(^String getId [_] "dummy-tx-id")
(^Optional get [_ ^Get _] (throw (CrudException. "get failed" nil)))
(^void put [_ ^Put _] (throw (CrudException. "put failed" nil)))
(^void commit [_] (throw (CommitException. "commit failed" nil)))))
Expand Down

0 comments on commit b740b69

Please sign in to comment.