Skip to content

Commit 290ac7e

Browse files
test: fix unsatisfiable initialization
1 parent a70b00b commit 290ac7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/initializationsystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,8 @@ end
12071207
prob2 = remake(prob; u0 = [x => 2.0])
12081208
@test prob2[x] == 2.0
12091209
test_dummy_initialization_equation(prob2, x)
1210-
prob3 = remake(prob; u0 = [y => 2.0])
1210+
# otherwise we have `x ~ 2, y ~ 2` which is unsatisfiable
1211+
prob3 = remake(prob; u0 = [x => nothing, y => 2.0])
12111212
@test prob3.f.initialization_data !== nothing
12121213
@test init(prob3)[x] 1.0
12131214
prob4 = remake(prob; p = [p => 1.0])

0 commit comments

Comments
 (0)