Skip to content

Commit

Permalink
Merge pull request #1058 from NREL-Sienna/2_subsystems
Browse files Browse the repository at this point in the history
Fix a test that relied on `get_components` ordering
  • Loading branch information
GabrielKS authored Feb 21, 2024
2 parents 591f2b7 + 61fc238 commit e097fec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_subsystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,13 @@ 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,
ThermalStandard,
PowerLoad,
c_sys5;
subsystem_name = "subsystem_1",
subsystem_name = "subsystem_2",
),
)[1].name == name
end
Expand Down

0 comments on commit e097fec

Please sign in to comment.