mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 08:13:28 +03:00
browser-flag: wrapped bool type denotes browser on/off flag. (#3963)
Statically typed BrowserFlag prevents any arbitrary string value usage. The wrapped bool marshals/unmarshals JSON according to the typed value ie string value "on" represents boolean true and "off" as boolean false.
This commit is contained in:
@@ -159,7 +159,7 @@ func TestServerConfigWithEnvs(t *testing.T) {
|
||||
defer removeAll(rootPath)
|
||||
|
||||
// Check if serverConfig has
|
||||
if serverConfig.GetBrowser() != "off" {
|
||||
if serverConfig.GetBrowser() {
|
||||
t.Errorf("Expecting browser `off` found %s", serverConfig.GetBrowser())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user