Skip to content

Commit 8a58312

Browse files
committed
fixup! add integration tests
1 parent 35a095d commit 8a58312

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/persistent_workers.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ using DistributedNext
77
@testset "PersistentWorkers.jl" begin
88
cookie = randstring(16)
99
port = rand(9128:9999) # TODO: make sure port is available?
10-
worker = run(
11-
`$(Base.julia_exename()) --startup=no --project=$(dirname(@__DIR__)) -L testhelpers/PersistentWorkers.jl
12-
-e "using .PersistentWorkers; wait(start_worker_loop($port; cluster_cookie=$(repr(cookie)))[1])"`;
13-
wait=false)
10+
helpers_path = joinpath(@__DIR__, "testhelpers", "PersistentWorkers.jl")
11+
cmd = `$(Base.julia_exename()) --startup=no --project=$(Base.active_project()) -L $(helpers_path) -e "using .PersistentWorkers; wait(start_worker_loop($port; cluster_cookie=$(repr(cookie)))[1])"`
12+
worker = run(pipeline(cmd; stdout, stderr); wait=false)
1413
try
1514
cluster_cookie(cookie)
1615
sleep(1)

0 commit comments

Comments
 (0)