Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Oct 7, 2024
2 parents 2e11dbf + f851505 commit 1ff5dee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand Down
8 changes: 1 addition & 7 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,8 @@ func newClient(apiKey, apiSecret string, options ...ClientOption) (*Client, erro
fn(client)
}

tr := http.DefaultTransport.(*http.Transport).Clone() //nolint:forcetypeassert
tr.MaxIdleConnsPerHost = 5
tr.ExpectContinueTimeout = 2 * time.Second
tr.IdleConnTimeout = 59 * time.Second

client.httpClient = &http.Client{
Timeout: client.defaultTimeout,
Transport: tr,
Timeout: client.defaultTimeout,
}

token, err := client.createTokenWithClaims(jwt.MapClaims{"server": true})
Expand Down

0 comments on commit 1ff5dee

Please sign in to comment.