Skip to content

Commit d1be866

Browse files
committed
fix flowcutter tests
1 parent 1ddf416 commit d1be866

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

test/core.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,12 @@ function CliqueTrees.permutation(graph, alg::SafeFlowCutter)
8080
time = alg.time
8181
seed = alg.seed
8282

83-
for i in 1:4
84-
try
85-
return permutation(graph, FlowCutter(; time, seed))
86-
catch
87-
@warn "FlowCutter failed (attempt $i)."
88-
end
83+
try
84+
return permutation(graph, FlowCutter(; time, seed))
85+
catch
86+
@warn "FlowCutter failed"
87+
return permutation(graph)
8988
end
90-
91-
return permutation(graph, FlowCutter(; time, seed))
9289
end
9390

9491
@testset "errors" begin

0 commit comments

Comments
 (0)