about summary refs log tree commit diff
path: root/tvix/glue/src
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2024-11-03T20·01+0100
committerBob van der Linden <bobvanderlinden@gmail.com>2024-11-04T10·39+0000
commitf90f14042af71c753a0b1bdd06f07e4f425e30e1 (patch)
treea2f64659682df8541248da864dbc09926383e37c /tvix/glue/src
parent37a7bfa1636e42359675c6f4ede90b892c1da5bf (diff)
test(tvix/glue): check context of __toString after toJSON r/8888
Change-Id: I65e3a8e8284ffb4986970ea67ed8d6b216e1eb66
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12730
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/glue/src')
-rw-r--r--tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp2
-rw-r--r--tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix1
2 files changed, 2 insertions, 1 deletions
diff --git a/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp b/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp
index a136b0035e0a..e27068dac1be 100644
--- a/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp
+++ b/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp
@@ -1 +1 @@
-[ true true true true true true true true true true true true true ]
+[ true true true true true true true true true true true true true true ]
diff --git a/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix b/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix
index e5719e00c3ae..3fe8b4cbbd51 100644
--- a/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix
+++ b/tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix
@@ -80,4 +80,5 @@ in
   # `toJSON` tests
   (builtins.hasContext (builtins.toJSON an-str))
   (builtins.hasContext (builtins.toJSON an-list))
+  (builtins.hasContext (builtins.toJSON { __toString = _: "${drv}"; }))
 ]