diff --git a/test/runtests.jl b/test/runtests.jl index 0888c6b..6e5fff9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -484,8 +484,8 @@ end @testset "no allocs S2" begin obj = S2(3, UInt32(5)) @test 0 == hot_loop_allocs(constructorof, typeof(obj)) - if VERSION ≤ v"1.3" - @test 32 == hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6))) + if VERSION < v"1.6" + @test 32 ≥ hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6))) else @test 0 == hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6))) end