Skip to content

Commit

Permalink
upstream: decrease external timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jul 16, 2024
1 parent f39f02e commit da41431
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upstream/upstream_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestUpstream_bootstrapTimeout(t *testing.T) {
func TestUpstreams(t *testing.T) {
t.Parallel()

const upsTimeout = 500 * time.Second
const upsTimeout = 10 * time.Second

l := slogutil.NewDiscardLogger()

Expand Down Expand Up @@ -209,6 +209,8 @@ func TestUpstreams(t *testing.T) {

for _, test := range upstreams {
t.Run(test.address, func(t *testing.T) {
t.Parallel()

u, upsErr := AddressToUpstream(
test.address,
&Options{Logger: l, Bootstrap: test.bootstrap, Timeout: upsTimeout},
Expand Down

0 comments on commit da41431

Please # to comment.