mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Handle err returned by rpc.Server.RegisterName (#2910)
This commit is contained in:
committed by
Harshavardhana
parent
84acc820c7
commit
b59bac670a
@@ -183,12 +183,16 @@ func StartTestServer(t TestErrHandler, instanceType string) TestServer {
|
||||
}
|
||||
|
||||
// Run TestServer.
|
||||
testServer.Server = httptest.NewServer(configureServerHandler(
|
||||
httpHandler, err := configureServerHandler(
|
||||
serverCmdConfig{
|
||||
disks: disks,
|
||||
storageDisks: storageDisks,
|
||||
},
|
||||
))
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to configure one of the RPC services <ERROR> %s", err)
|
||||
}
|
||||
testServer.Server = httptest.NewServer(httpHandler)
|
||||
|
||||
testServer.Obj = objLayer
|
||||
globalObjLayerMutex.Lock()
|
||||
|
||||
Reference in New Issue
Block a user