mirror of
https://github.com/lightninglabs/aperture.git
synced 2025-12-18 01:24:19 +01:00
proxy: log error when port is used
This commit is contained in:
@@ -81,7 +81,11 @@ func TestProxyHTTP(t *testing.T) {
|
||||
Addr: testProxyAddr,
|
||||
Handler: http.HandlerFunc(p.ServeHTTP),
|
||||
}
|
||||
go func() { _ = server.ListenAndServe() }()
|
||||
go func() {
|
||||
if err := server.ListenAndServe(); err != http.ErrServerClosed {
|
||||
t.Errorf("Error serving on %s: %v", testProxyAddr, err)
|
||||
}
|
||||
}()
|
||||
defer closeOrFail(t, server)
|
||||
|
||||
// Start the target backend service.
|
||||
|
||||
Reference in New Issue
Block a user