Skip to content

Commit 71fda42

Browse files
committed
code changes to fix the empty slot issue
1 parent b85bc30 commit 71fda42

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

feature/platform/tests/telemetry_inventory_test/telemetry_inventory_test.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,11 +1043,17 @@ func TestDefaultPowerAdminState(t *testing.T) {
10431043
}
10441044
switch compName {
10451045
case "Fabric":
1046-
fabrics = append(fabrics, c)
1046+
if c.GetEmpty() == false {
1047+
fabrics = append(fabrics, c)
1048+
}
10471049
case "Linecard":
1048-
linecards = append(linecards, c)
1050+
if c.GetEmpty() == false {
1051+
linecards = append(linecards, c)
1052+
}
10491053
case "Supervisor":
1050-
supervisors = append(supervisors, c)
1054+
if c.GetEmpty() == false {
1055+
supervisors = append(supervisors, c)
1056+
}
10511057
}
10521058
}
10531059
}

0 commit comments

Comments
 (0)