summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-21 12:09:42 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-21 12:09:42 +0100
commit9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (patch)
tree0cc25d9b330d06a260fc3428646b3014a7ab8366 /test
parentce13c93cf14cb71894481b0303a7058a72a6f4ce (diff)
Load works for list and content values
Diffstat (limited to 'test')
-rw-r--r--test/load.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/load.ml b/test/load.ml
index 8f4d2fe..ebc4e15 100644
--- a/test/load.ml
+++ b/test/load.ml
@@ -26,8 +26,7 @@ let exec : string list -> t = function
let* id1 = Query.insert db content (Common.provider_for content 1L) in
let* id2 = Query.insert db content (Common.provider_for content 2L) in
let load_one id =
- let v = Value.v content id in
- let* () = Value.load db v in
+ let* v = Value.load db (Model.Reference.of_content content) id in
Lwt.return
[ Format.sprintf "row %Ld:" id; Format.asprintf "%a" Value.pp v ]
in