Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit e1c8eaf

Browse files
committed
Remove timing test that randomly fails once in a while
1 parent 40e877c commit e1c8eaf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/test_sparse_hessian.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,13 @@ for (i, hescache) in enumerate([hescache1, hescache2, hescache3, hescache4, hesc
8888
numauto_color_hessian!(H1, fscalar, x, hescache, safe=false)
8989
@test all(isapprox.(H1, H))
9090

91-
# confirm unsafe is faster
92-
t_safe = minimum(@elapsed(numauto_color_hessian!(H1, fscalar, x, hescache, safe=true))
93-
for _ in 1:100)
94-
t_unsafe = minimum(@elapsed(numauto_color_hessian!(H1, fscalar, x, hescache, safe=false))
95-
for _ in 1:100)
96-
@test t_unsafe <= t_safe
91+
# the following tests usually pass, but once in a while don't (it's not a big difference
92+
# in timing on these small matrices, and sometimes its less than the timing variability).
93+
# Commenting out for now to avoid rare stochastic test failures.
94+
# # confirm unsafe is faster
95+
# t_safe = minimum(@elapsed(numauto_color_hessian!(H1, fscalar, x, hescache, safe=true))
96+
# for _ in 1:100)
97+
# t_unsafe = minimum(@elapsed(numauto_color_hessian!(H1, fscalar, x, hescache, safe=false))
98+
# for _ in 1:100)
99+
# @test t_unsafe <= t_safe
97100
end

0 commit comments

Comments
 (0)