From faa5c9d3dbf0569531f2061fa6c3055101b6e09d Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 23 Aug 2026 18:18:13 +0000 Subject: [PATCH] Install the resolved layout in the create_context test --- node-graph/nodes/gstd/src/render_node.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/node-graph/nodes/gstd/src/render_node.rs b/node-graph/nodes/gstd/src/render_node.rs index 9d21b21af3..de4156ac00 100644 --- a/node-graph/nodes/gstd/src/render_node.rs +++ b/node-graph/nodes/gstd/src/render_node.rs @@ -269,7 +269,17 @@ mod tests { let probe = core_types::record::RecordLift::::new(ProbeNode); let layout = Node::::layout(&probe).clone(); core_types::record::stack::reserve(layout.frame_bytes().max(1 << 12)); - let graph = CreateContextNode::new(probe, &layout); + let mut graph = CreateContextNode::new(probe, &layout); + // The executor resolves and installs the node's own layout at wiring; + // without it the flip tail writes through the default empty layout. + Node::::set_layout( + &mut graph, + core_types::record::RecordLayout { + frame_bytes: layout.frame_bytes(), + plan: Vec::new(), + layout: layout.clone(), + }, + ); let GPoll::Final(result) = Node::::eval(&graph, &ctx) else { panic!("create_context must complete synchronously"); };