Skip to content

Commit 8a3fa52

Browse files
fixup! test: avoid spamming stderr in debugging tests
1 parent 9d65e53 commit 8a3fa52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/debugging.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using ModelingToolkit, OrdinaryDiffEq, StochasticDiffEq, SymbolicIndexingInterface
2+
import Logging
23
using ModelingToolkit: t_nounits as t, D_nounits as D, ASSERTION_LOG_VARIABLE
34

45
@variables x(t)
@@ -28,7 +29,7 @@ end
2829
sol = @test_logs (:error, r"ohno") match_mode=:any solve(prob, alg)
2930
@test !SciMLBase.successful_retcode(sol)
3031
prob.ps[ASSERTION_LOG_VARIABLE] = false
31-
sol = @test_nowarn solve(prob, alg)
32+
sol = @test_logs min_level=Logging.Error solve(prob, alg)
3233
@test !SciMLBase.successful_retcode(sol)
3334
end
3435
end
@@ -44,7 +45,7 @@ end
4445
sol = @test_logs (:error, r"ohno") match_mode=:any solve(prob, alg)
4546
@test !SciMLBase.successful_retcode(sol)
4647
prob.ps[ASSERTION_LOG_VARIABLE] = false
47-
sol = @test_nowarn solve(prob, alg)
48+
sol = @test_logs min_level=Logging.Error solve(prob, alg)
4849
@test !SciMLBase.successful_retcode(sol)
4950
end
5051
end

0 commit comments

Comments
 (0)