Skip to content

Commit 7a91eed

Browse files
authored
Update test/runtests.jl
1 parent 93626be commit 7a91eed

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/runtests.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,7 @@ end
113113
nls = ADNLSModel(x -> [x[1] - 1, x[2] - 2], [0.0, 0.0], 2)
114114
stats = ipopt(nls, print_level = 0)
115115
@test isapprox(stats.solution, [1.0, 2.0], rtol = 1e-6)
116-
# Accept :first_order or :unknown due to possible log file issues
117-
@test stats.status == :first_order || stats.status == :unknown
118-
if hasfield(typeof(stats), :iter) && stats.iter != -1
119-
@test stats.iter >= 0
120-
end
121-
if hasfield(typeof(stats), :dual_feas) && isfinite(stats.dual_feas)
122-
@test isapprox(stats.dual_feas, 0.0; atol=1e-8)
123-
end
116+
@test stats.status == :first_order
117+
@test stats.iter >= 0
118+
@test isapprox(stats.dual_feas, 0.0; atol=1e-8)
124119
end

0 commit comments

Comments
 (0)