diff options
author | sterni <sternenseemann@systemli.org> | 2024-01-20T20·21+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-01-22T14·24+0000 |
commit | 842d5ed3ee68f819742cbd3a81dac8f3410161dc (patch) | |
tree | 7b5cdf24447c5a11f0fb5921ec84e162e5e51be8 /tvix/glue/src/tests | |
parent | bdeb6f406e7ea8faa496cedc627bc024014e14b6 (diff) |
fix(tvix/glue/tests): resolve logic error in hasContextInAttrKeys r/7439
Change-Id: I7aa09c10f803c2b79363fe3eb52c1127276a333b Reviewed-on: https://cl.tvl.fyi/c/depot/+/10676 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/glue/src/tests')
-rw-r--r-- | tvix/glue/src/tests/tvix_tests/eval-okay-context-introspection.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 ed78112ab7eb..1b645b1a2607 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 @@ -18,7 +18,8 @@ let # then, we reassemble the list into a proper string. discardContext = target: builtins.concatStringsSep "" (builtins.split "(.*)" "${target}"); - hasContextInAttrKeys = attrs: builtins.all builtins.hasContext (builtins.attrNames attrs); + # Note that this should never return true for any attribute set. + hasContextInAttrKeys = attrs: builtins.any builtins.hasContext (builtins.attrNames attrs); path = "${./eval-okay-context-introspection.nix}"; |