Skip to content

Commit b551356

Browse files
Update src/test_utils.jl
Co-authored-by: Penelope Yong <[email protected]>
1 parent 1da4c6e commit b551356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ function test_context(context::DynamicPPL.AbstractContext, model::DynamicPPL.Mod
11281128
leafcontext_new
11291129

11301130
# Setting the child context to a leaf should now change the leafcontext accordingly.
1131-
context_with_new_leaf = DynamicPPL.setleafcontext(context, leafcontext_new)
1131+
context_with_new_leaf = DynamicPPL.setchildcontext(context, leafcontext_new)
11321132
@test childcontext(context_with_new_leaf) ===
11331133
leafcontext(context_with_new_leaf) ===
11341134
leafcontext_new

0 commit comments

Comments
 (0)