From 590e68267fbfb61098c8627b0e7865ca55fc4546 Mon Sep 17 00:00:00 2001 From: Tengis Dashmunkh Date: Tue, 20 Feb 2024 14:36:01 -0700 Subject: [PATCH 1/2] Fixing the failed test --- test/test_subsystems.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_subsystems.jl b/test/test_subsystems.jl index 6de0e745f0..5d7f5360dd 100644 --- a/test/test_subsystems.jl +++ b/test/test_subsystems.jl @@ -560,9 +560,9 @@ end @test collect( get_components( x -> x.name == name, - ThermalStandard, + PowerLoad, c_sys5; - subsystem_name = "subsystem_1", + subsystem_name = "subsystem_2", ), )[1].name == name end From 61fc238cbefbc899816ad2a1618e9a2aa90df0f1 Mon Sep 17 00:00:00 2001 From: Tengis Dashmunkh Date: Tue, 20 Feb 2024 15:57:39 -0700 Subject: [PATCH 2/2] replacing the acess by index --- test/test_subsystems.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_subsystems.jl b/test/test_subsystems.jl index 5d7f5360dd..52d82b76ba 100644 --- a/test/test_subsystems.jl +++ b/test/test_subsystems.jl @@ -556,7 +556,7 @@ end @test length( get_components(ThermalStandard, c_sys5; subsystem_name = "subsystem_1"), ) == 5 - name = get_name(components[14]) + name = get_name(get_component(PowerLoad, c_sys5, "Load-nodeB2")) @test collect( get_components( x -> x.name == name,