Skip to content

Commit

Permalink
some adjustments based on review#2 - inline testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dszmolka committed Jan 13, 2025
1 parent 989c8f8 commit f257d25
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,12 @@ func TestFindByPrefix(t *testing.T) {
assertEqualE(t, findByPrefix([]string{}, "dd"), -1)
}

type tcConfigWithTransport struct {
name string
cfg *Config
transport *http.Transport
}

func TestGetTransport(t *testing.T) {
testcases := []tcConfigWithTransport{
testcases := []struct {
name string
cfg *Config
transport *http.Transport
}{
{
name: "DisableOCSPChecks and InsecureMode false",
cfg: &Config{Account: "one", DisableOCSPChecks: false, InsecureMode: false},
Expand Down

0 comments on commit f257d25

Please sign in to comment.