Skip to content

Commit 504389a

Browse files
committed
avoid writing into package depot dir
1 parent 82930e5 commit 504389a

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

test/runtests_routeguide.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,14 @@ end
4848

4949
function test_generate()
5050
@testset "codegen" begin
51-
dir = joinpath(@__DIR__, "RouteguideClients")
52-
gRPCClient.generate(joinpath(dir, "route_guide.proto"); outdir=dir)
53-
@test isfile(joinpath(dir, "route_guide_pb.jl"))
54-
@test isfile(joinpath(dir, "routeguide.jl"))
55-
@test isfile(joinpath(dir, "RouteguideClients.jl"))
51+
# dir = joinpath(@__DIR__, "RouteguideClients")
52+
# generate into tempdir to avoid writing inside depot folder
53+
mktempdir() do dir
54+
gRPCClient.generate(joinpath(dir, "route_guide.proto"); outdir=dir)
55+
@test isfile(joinpath(dir, "route_guide_pb.jl"))
56+
@test isfile(joinpath(dir, "routeguide.jl"))
57+
@test isfile(joinpath(dir, "RouteguideClients.jl"))
58+
end
5659
end
5760
end
5861

0 commit comments

Comments
 (0)