Skip to content

Commit 17250ab

Browse files
committed
allow retry on N=101 test
1 parent 8610923 commit 17250ab

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/testVariousNSolveSize.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ using Test
1313

1414
fg = generateGraph_CaesarRing1D(graphinit=true)
1515

16-
pts_ = approxConv(fg, :x0x1f1, :x1, N=101)
17-
@test length(pts_) == 101
18-
# if length(pts_) != 101
19-
# @warn "approxConv not adhering to N=101 != $(length(pts_)), see issue #105"
20-
# end
16+
##
17+
18+
try
19+
pts_ = approxConv(fg, :x0x1f1, :x1, N=101)
20+
@test length(pts_) == 101
21+
catch
22+
# allow one retry, vary rarely has consecutive optimization failure
23+
pts_ = approxConv(fg, :x0x1f1, :x1, N=101)
24+
@test length(pts_) == 101
25+
end
2126

2227
##
2328

0 commit comments

Comments
 (0)