Skip to content

Commit 3c2c61e

Browse files
committed
Fixed small issue with Performance Tests
1 parent 2faa94d commit 3c2c61e

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

src/OnCommand-Insight.Tests.ps1

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,27 @@ function ValidateFcWeightedPortBalanceIndex {
594594
if ($FcWeightedPortBalanceIndex.unitType) {
595595
$FcWeightedPortBalanceIndex.unitType | Should Match '%|KB/s|MB/s|IO/s|ms'
596596
}
597-
$FcWeightedPortBalanceIndex.start | Should BeOfType DateTime
598-
$FcWeightedPortBalanceIndex.end | Should BeOfType DateTime
599-
$FcWeightedPortBalanceIndex.current -as [double] | Should BeOfType Double
600-
$FcWeightedPortBalanceIndex.min -as [double] | Should BeOfType Double
601-
$FcWeightedPortBalanceIndex.max -as [double] | Should BeOfType Double
602-
$FcWeightedPortBalanceIndex.avg -as [double] | Should BeOfType Double
603-
$FcWeightedPortBalanceIndex.sum -as [double] | Should BeOfType Double
597+
if ($FcWeightedPortBalanceIndex.start) {
598+
$FcWeightedPortBalanceIndex.start | Should BeOfType DateTime
599+
}
600+
if ($FcWeightedPortBalanceIndex.end) {
601+
$FcWeightedPortBalanceIndex.end | Should BeOfType DateTime
602+
}
603+
if ($FcWeightedPortBalanceIndex.current) {
604+
$FcWeightedPortBalanceIndex.current -as [double] | Should BeOfType Double
605+
}
606+
if ($FcWeightedPortBalanceIndex.min) {
607+
$FcWeightedPortBalanceIndex.min -as [double] | Should BeOfType Double
608+
}
609+
if ($FcWeightedPortBalanceIndex.max) {
610+
$FcWeightedPortBalanceIndex.max -as [double] | Should BeOfType Double
611+
}
612+
if ($FcWeightedPortBalanceIndex.avg) {
613+
$FcWeightedPortBalanceIndex.avg -as [double] | Should BeOfType Double
614+
}
615+
if ($FcWeightedPortBalanceIndex.sum) {
616+
$FcWeightedPortBalanceIndex.sum -as [double] | Should BeOfType Double
617+
}
604618
}
605619
}
606620

0 commit comments

Comments
 (0)