Skip to content

Commit 5dbab5f

Browse files
committed
Disable broken test tthat relies on stable random generators
1 parent 445e983 commit 5dbab5f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/runtests.jl

+6-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ end
126126
@testset "Spring Layout" begin
127127
g1 = path_digraph(3)
128128
x1, y1 = spring_layout(g1, 0; C = 1)
129-
@test all(isapprox.(x1, [1.0, -0.014799825222963192, -1.0]))
130-
@test all(isapprox.(y1, [-1.0, 0.014799825222963303, 1.0]))
129+
# TODO spring_layout uses random values which have changed on higher Julia versions
130+
# we should therefore use StableRNGs.jl for these layouts
131+
@static if VERSION < v"1.7"
132+
@test all(isapprox.(x1, [1.0, -0.014799825222963192, -1.0]))
133+
@test all(isapprox.(y1, [-1.0, 0.014799825222963303, 1.0]))
134+
end
131135
end
132136

133137
@testset "Circular Layout" begin

0 commit comments

Comments
 (0)