XL total/free space calculation is done inside xl module (#2945)

This commit is contained in:
Anis Elleuch
2016-10-16 22:24:15 +01:00
committed by Harshavardhana
parent a681af6953
commit 334cdb5d64
3 changed files with 7 additions and 11 deletions

View File

@@ -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)
}
}