mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
server-info: Change Error type to string (#4346)
Golang std error type doesn't marshal/unmarshal with json. So errors are not actually being sent when a client calls ServerInfo() API.
This commit is contained in:
committed by
Harshavardhana
parent
87fb911d38
commit
465274cd21
@@ -1314,7 +1314,7 @@ func TestAdminServerInfo(t *testing.T) {
|
||||
if len(serverInfo.Addr) == 0 {
|
||||
t.Error("Expected server address to be non empty")
|
||||
}
|
||||
if serverInfo.Error != nil {
|
||||
if serverInfo.Error != "" {
|
||||
t.Errorf("Unexpected error = %v\n", serverInfo.Error)
|
||||
}
|
||||
if serverInfo.Data.StorageInfo.Free == 0 {
|
||||
|
||||
Reference in New Issue
Block a user