Merge ListenAndServe and ListenAndServeTLS for simplification purpose (#3186)

This commit is contained in:
Anis Elleuch
2016-11-06 04:32:13 +01:00
committed by Harshavardhana
parent 1105508453
commit 754c0770d6
3 changed files with 42 additions and 66 deletions

View File

@@ -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)