Skip to content

Commit 1a0982c

Browse files
committed
Fix wrong function being called
1 parent d635a17 commit 1a0982c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test_utils/contexts.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function test_context(context::DynamicPPL.AbstractContext, model::DynamicPPL.Mod
9292

9393
# Setting the child context to a leaf should now change the leafcontext accordingly.
9494
context_with_new_leaf = DynamicPPL.setchildcontext(context, leafcontext_new)
95-
@test DynamicPPL.setchildcontext(context_with_new_leaf) ===
96-
DynamicPPL.setleafcontext(context_with_new_leaf) ===
95+
@test DynamicPPL.childcontext(context_with_new_leaf) ===
96+
DynamicPPL.leafcontext(context_with_new_leaf) ===
9797
leafcontext_new
9898

9999
# Make sure that the we can evaluate the model with the context (i.e. that none of the tilde-functions are incorrectly overloaded).

0 commit comments

Comments
 (0)