mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05: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
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user