XL total/free space calculation is done inside xl module (#2945)
This commit is contained in:
committed by
Harshavardhana
parent
a681af6953
commit
334cdb5d64
@@ -39,8 +39,8 @@ func TestStorageInfoMsg(t *testing.T) {
|
||||
}{XL, 7, 1, 4, 5},
|
||||
}
|
||||
|
||||
if msg := getStorageInfoMsg(infoStorage); !strings.Contains(msg, "1.0 GiB Free, 5.0 GiB Total") || !strings.Contains(msg, "7 Online, 1 Offline") {
|
||||
t.Fatal("Empty message string is not implemented", msg)
|
||||
if msg := getStorageInfoMsg(infoStorage); !strings.Contains(msg, "2.0 GiB Free, 10 GiB Total") || !strings.Contains(msg, "7 Online, 1 Offline") {
|
||||
t.Fatal("Unexpected storage info message, found:", msg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user