config: Fix creating new config with wrong version (#3821)

Simplify a little config code to avoid making mistake
next time.
This commit is contained in:
Anis Elleuch
2017-03-01 18:17:04 +01:00
committed by Harshavardhana
parent 91cf54f895
commit 77c1998a38
4 changed files with 38 additions and 31 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ func TestServerConfig(t *testing.T) {
})
// Match version.
if serverConfig.GetVersion() != globalMinioConfigVersion {
t.Errorf("Expecting version %s found %s", serverConfig.GetVersion(), globalMinioConfigVersion)
if serverConfig.GetVersion() != v14 {
t.Errorf("Expecting version %s found %s", serverConfig.GetVersion(), v14)
}
// Attempt to save.