Skip to content

Commit 68e72b3

Browse files
committed
update cons warning test check for updated message
1 parent eb4ac36 commit 68e72b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/network_analysis/conservation_laws.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,21 +270,21 @@ let
270270
# Check warnings in system conversion.
271271
for XSystem in [ODESystem, SDESystem, NonlinearSystem]
272272
@test_nowarn convert(XSystem, rn)
273-
@test_logs (:warn, r"You are creating a system while eliminating conserved quantities. While *") convert(XSystem, rn; remove_conserved = true)
273+
@test_logs (:warn, r"You are creating a system or problem while eliminating conserved quantities. Please *") convert(XSystem, rn; remove_conserved = true)
274274
@test_nowarn convert(XSystem, rn; remove_conserved_warn = false)
275275
@test_nowarn convert(XSystem, rn; remove_conserved = true, remove_conserved_warn = false)
276276
end
277277

278278
# Checks during problem creation (separate depending on whether they have a time span or not).
279279
for XProblem in [ODEProblem, SDEProblem]
280280
@test_nowarn XProblem(rn, u0, tspan, ps)
281-
@test_logs (:warn, r"You are creating a system while eliminating conserved quantities. While *") XProblem(rn, u0, tspan, ps; remove_conserved = true)
281+
@test_logs (:warn, r"You are creating a system or problem while eliminating conserved quantities. Please *") XProblem(rn, u0, tspan, ps; remove_conserved = true)
282282
@test_nowarn XProblem(rn, u0, tspan, ps; remove_conserved_warn = false)
283283
@test_nowarn XProblem(rn, u0, tspan, ps; remove_conserved = true, remove_conserved_warn = false)
284284
end
285285
for XProblem in [NonlinearProblem, SteadyStateProblem]
286286
@test_nowarn XProblem(rn, u0, ps)
287-
@test_logs (:warn, r"You are creating a system while eliminating conserved quantities. While *") XProblem(rn, u0, ps; remove_conserved = true)
287+
@test_logs (:warn, r"You are creating a system or problem while eliminating conserved quantities. Please *") XProblem(rn, u0, ps; remove_conserved = true)
288288
@test_nowarn XProblem(rn, u0, ps; remove_conserved_warn = false)
289289
@test_nowarn XProblem(rn, u0, ps; remove_conserved = true, remove_conserved_warn = false)
290290
end

0 commit comments

Comments
 (0)