aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/backend
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-08-15 00:09:22 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-08-23 03:06:56 +0000
commit5a4f7d5ed6e5d6b2711db316e8de06cea78b54ec (patch)
tree5a6372324f12858775848e169eace7be52a86101 /test/unit/backend
parent403f1a62f66c33a7d39c17704f34debe579c89b0 (diff)
downloadRNT-5a4f7d5ed6e5d6b2711db316e8de06cea78b54ec.tar.gz
RNT-5a4f7d5ed6e5d6b2711db316e8de06cea78b54ec.zip
Allow storage backend addresses to be labels rather than hashes
Diffstat (limited to '')
-rw-r--r--test/unit/backend/Storage.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/backend/Storage.ml b/test/unit/backend/Storage.ml
index 76bda8b..e184e1b 100644
--- a/test/unit/backend/Storage.ml
+++ b/test/unit/backend/Storage.ml
@@ -13,9 +13,9 @@ module Make (S : Abstract.Storage.STORAGE) (C : Helpers.Storage.CONFIGURATOR) =
begin
let open Utilities.Result in
let* tx = S.start conn in
- let* v = S.get tx key in
- let* () = S.put tx key blob in
- let* v' = S.get tx key in
+ let* v = S.get tx (S.Hash key) in
+ let* () = S.put tx (S.Hash key) blob in
+ let* v' = S.get tx (S.Hash key) in
Ok Concepts.Representation.(Option.map value_of_blob v, Option.map value_of_blob v')
end
|> Helpers.condition_as_failure