From f90f14042af71c753a0b1bdd06f07e4f425e30e1 Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Sun, 3 Nov 2024 21:01:45 +0100 Subject: test(tvix/glue): check context of __toString after toJSON Change-Id: I65e3a8e8284ffb4986970ea67ed8d6b216e1eb66 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12730 Reviewed-by: flokli Tested-by: BuildkiteCI --- tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.exp | 2 +- tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tvix') 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}"; })) ] -- cgit 1.4.1