lntest: add http header timeout to config

This commit is contained in:
Amin Bashiri committed 2023-10-17 11:25:06 -06:00
1 parent 039e9effe7
commit 0c64a183cf
4 files changed
+20 -10

No files matched your search

+4 -2
View File
@@ -9,6 +9,7 @@ import (
"sync"
"testing"
"github.com/lightningnetwork/lnd"
"github.com/lightningnetwork/lnd/lntest/node"
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
"github.com/stretchr/testify/require"
@@ -81,8 +82,9 @@ func NewFeeService(t *testing.T) *FeeService {
mux.HandleFunc("/fee-estimates.json", f.handleRequest)
f.srv = &http.Server{
Addr: listenAddr,
Handler: mux,
Addr: listenAddr,
Handler: mux,
ReadHeaderTimeout: lnd.DefaultHTTPHeaderTimeout,
}
return &f