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

View File

@@ -151,7 +151,7 @@ func TestServerConfigMigrateV2toV14(t *testing.T) {
}
// Check the version number in the upgraded config file
expectedVersion := globalMinioConfigVersion
expectedVersion := v14
if serverConfig.Version != expectedVersion {
t.Fatalf("Expect version "+expectedVersion+", found: %v", serverConfig.Version)
}