fixed test TestDiskIOCountersStat_String to consider new weightedIO field
This commit is contained in:
parent
acf3fef036
commit
31f4fb8dee
|
@ -93,7 +93,7 @@ func TestDiskIOCountersStat_String(t *testing.T) {
|
||||||
WriteBytes: 400,
|
WriteBytes: 400,
|
||||||
SerialNumber: "SERIAL",
|
SerialNumber: "SERIAL",
|
||||||
}
|
}
|
||||||
e := `{"readCount":100,"mergedReadCount":0,"writeCount":200,"mergedWriteCount":0,"readBytes":300,"writeBytes":400,"readTime":0,"writeTime":0,"iopsInProgress":0,"ioTime":0,"name":"sd01","serialNumber":"SERIAL"}`
|
e := `{"readCount":100,"mergedReadCount":0,"writeCount":200,"mergedWriteCount":0,"readBytes":300,"writeBytes":400,"readTime":0,"writeTime":0,"iopsInProgress":0,"ioTime":0,"weightedIO":0,"name":"sd01","serialNumber":"SERIAL"}`
|
||||||
if e != fmt.Sprintf("%v", v) {
|
if e != fmt.Sprintf("%v", v) {
|
||||||
t.Errorf("DiskUsageStat string is invalid: %v", v)
|
t.Errorf("DiskUsageStat string is invalid: %v", v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue