Fix mdadm collector for resync=PENDING.

Add fix for mdadm devices in state `resync=PENDING`.
* Update test and fixture.
This commit is contained in:
Ben Kochie 2016-09-18 08:17:00 +02:00
commit 64b82596ef
4 changed files with 11 additions and 1 deletions

View file

@ -34,6 +34,7 @@ func TestMdadm(t *testing.T) {
"md7": {"md7", true, 3, 4, 7813735424, 7813735424},
"md9": {"md9", true, 4, 4, 523968, 523968},
"md10": {"md10", true, 2, 2, 314159265, 314159265},
"md11": {"md11", true, 2, 2, 4190208, 4190208},
}
for _, md := range mdStates {