From 2adf1390a95ee34f376566051dfd0b275725a451 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Mon, 15 Apr 2024 10:13:21 +0200 Subject: [PATCH] Add tolerance to subnetwork demands test --- core/test/allocation_test.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/test/allocation_test.jl b/core/test/allocation_test.jl index 262c4e736..f397920b8 100644 --- a/core/test/allocation_test.jl +++ b/core/test/allocation_test.jl @@ -309,8 +309,10 @@ end # lower the subnetwork demands @test subnetwork_demands[(NodeID(:Basin, 2), NodeID(:Pump, 11))] ≈ [3.1, 4.0, 0.0] atol = 1e-4 - @test subnetwork_demands[(NodeID(:Basin, 6), NodeID(:Pump, 24))] ≈ [0.004, 0.0, 0.0] - @test subnetwork_demands[(NodeID(:Basin, 10), NodeID(:Pump, 38))][1:2] ≈ [0.001, 0.001] + @test subnetwork_demands[(NodeID(:Basin, 6), NodeID(:Pump, 24))] ≈ [0.004, 0.0, 0.0] atol = + 1e-4 + @test subnetwork_demands[(NodeID(:Basin, 10), NodeID(:Pump, 38))][1:2] ≈ [0.001, 0.001] atol = + 1e-4 end @testitem "Allocation level control" begin