From c8339a1129dbf8376caec6ab4e24e548ea9f57ed Mon Sep 17 00:00:00 2001 From: Pablo San-Jose Date: Thu, 12 Dec 2024 18:53:01 +0100 Subject: [PATCH] fix test --- test/test_greenfunction.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_greenfunction.jl b/test/test_greenfunction.jl index f22d0959..908fb7c9 100644 --- a/test/test_greenfunction.jl +++ b/test/test_greenfunction.jl @@ -610,6 +610,9 @@ end @test_throws ArgumentError meanfield(g) end +using Distributed; addprocs(1) # for Serialization below +@everywhere using Quantica + @testset begin "OrbitalSliceArray serialization" g = LP.linear() |> supercell(4) |> supercell |> hamiltonian(hopping(I), orbitals = 2) |> greenfunction m = g(0.2)[cells = 0] @@ -631,8 +634,6 @@ end @test_throws ArgumentError deserialize(m´, v) # issue #327 - using Distributed; addprocs(1) # for Serialization - @everywhere using Quantica g = LP.linear() |> hopping(1) |> attach(nothing, cells = 0) |> greenfunction @test remotecall_fetch(g[1], 2, 0) isa OrbitalSliceMatrix end