test(tvix/eval): add a test for observing an infinite attribute set
Note that this test (ironically) fails if the observer is used (e.g. with --trace-runtime), but that's a separate issue. Change-Id: I952eaeac8b5a7acce9c66cd4744ec570280748e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7055 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
d4fa3152e9
commit
359444360b
2 changed files with 5 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
[ "x" "y" ]
|
|
@ -0,0 +1,4 @@
|
|||
# The below attribute set is infinitely large, but we should be able
|
||||
# to observe it as long as we don't access its entire value.
|
||||
|
||||
let as = { x = 123; y = as; }; in builtins.attrNames as.y.y
|
Loading…
Reference in a new issue