Skip to content

Commit

Permalink
Fix the global Random.seed in runtests.jl (#2381)
Browse files Browse the repository at this point in the history
Co-authored-by: Penelope Yong <[email protected]>
  • Loading branch information
mhauru and penelopeysm authored Oct 30, 2024
1 parent f6fdc91 commit 5426eca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
include("test_utils/SelectiveTests.jl")
using .SelectiveTests: isincluded, parse_args
using Pkg
using Random: seed!
using Test
using TimerOutputs: TimerOutputs, @timeit
import Turing

# Fix the global Random.seed for reproducibility.
seed!(23)

include(pkgdir(Turing) * "/test/test_utils/models.jl")
include(pkgdir(Turing) * "/test/test_utils/numerical_tests.jl")
include(pkgdir(Turing) * "/test/test_utils/ad_utils.jl")
Expand Down

0 comments on commit 5426eca

Please sign in to comment.