mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
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:
committed by
Harshavardhana
parent
91cf54f895
commit
77c1998a38
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user