-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Closed
Copy link
Labels
randomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlibregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontestsystemThe unit testing framework and Test stdlibThe unit testing framework and Test stdlib
Description
So that might be an issue with `Test.guardseed` now then. That `copy` seems to be supposed to work.
Originally posted by @vtjnash in #51225 (comment)
Here is a MWE that works in 1.9 but fails in 1.10.
using Test
@testset "top test" begin
random_nums = Float64[]
for i in 1:5
@testset "inner test" begin
@test true
end
push!(random_nums, fetch(@async(rand())))
end
@test !allequal(random_nums)
end
Metadata
Metadata
Assignees
Labels
randomnessRandom number generation and the Random stdlibRandom number generation and the Random stdlibregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontestsystemThe unit testing framework and Test stdlibThe unit testing framework and Test stdlib