From 786bcb93f1875fed1754d5722c5228be195e7a54 Mon Sep 17 00:00:00 2001 From: Pablo San-Jose Date: Sat, 21 Oct 2023 01:41:37 +0200 Subject: [PATCH] test fix --- test/test_bandstructure.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_bandstructure.jl b/test/test_bandstructure.jl index 9800cacf..48709b63 100644 --- a/test/test_bandstructure.jl +++ b/test/test_bandstructure.jl @@ -82,8 +82,9 @@ end supercell |> hamiltonian(@onsite!((o; k) -> o + k*I), @hopping!((t; k = 2, p = [1,2])-> t - k*I .+ p'p)) b = bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; k = k, p = SA[1, φ]), showprogress = false) @test nsubbands(b) == 1 - # multithreading loop throws a CompositeException - @test_throws CompositeException bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; p = SA[1, φ]), showprogress = false) + # multithreading loop does not throw error + b = bands(ph, mesh2D..., mapping = (k, φ) -> ftuple(; k, p = SA[1, φ]), showprogress = false) + @test nsubbands(b) == 1 end @testset "spectrum" begin