From 851544ce3101fc9b9e1189838e99685d15b0cc33 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 10 Feb 2025 12:05:08 +0100 Subject: [PATCH] increase test timeout --- test/packages/PkgUtils.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/packages/PkgUtils.jl b/test/packages/PkgUtils.jl index c16d98a46..399a52dde 100644 --- a/test/packages/PkgUtils.jl +++ b/test/packages/PkgUtils.jl @@ -1,7 +1,5 @@ - - - +using Pluto.WorkspaceManager: WorkspaceManager, poll using Pluto @@ -31,14 +29,16 @@ without_pluto_version(s) = replace(s, r"# v.*" => "") @test sort(collect(keys(Pkg.project().dependencies))) == ["Artifacts", "Dates"] - ### EXIT, activate another env and wait for our previous changes to get picked up + ### EXIT, activate another env Base.ACTIVE_PROJECT[] = ap_before - sleep(5) ### # get embedded project.toml from notebook: - @test occursin("Artifacts", Pluto.PkgCompat.read_project_file(Pluto.load_notebook_nobackup(file))) + # (poll to wait for our previous changes to get picked up) + @test poll(60, 1/4) do + occursin("Artifacts", Pluto.PkgCompat.read_project_file(Pluto.load_notebook_nobackup(file))) + end after = without_pluto_version(read(file, String)) @test before != after