mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Merge ListenAndServe and ListenAndServeTLS for simplification purpose (#3186)
This commit is contained in:
committed by
Harshavardhana
parent
1105508453
commit
754c0770d6
@@ -306,7 +306,7 @@ func TestListenAndServePlain(t *testing.T) {
|
||||
}))
|
||||
|
||||
// ListenAndServe in a goroutine, but we don't know when it's ready
|
||||
go func() { errc <- m.ListenAndServe() }()
|
||||
go func() { errc <- m.ListenAndServe("", "") }()
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
@@ -370,7 +370,7 @@ func TestListenAndServeTLS(t *testing.T) {
|
||||
}
|
||||
|
||||
// ListenAndServe in a goroutine, but we don't know when it's ready
|
||||
go func() { errc <- m.ListenAndServeTLS(certFile, keyFile) }()
|
||||
go func() { errc <- m.ListenAndServe(certFile, keyFile) }()
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user