Skip to content

Commit

Permalink
Fix the test issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Aug 30, 2023
1 parent 4e3e9bf commit da3e666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func ExampleBearerAuth() { // nolint: govet
}

go func() {
err := http.ListenAndServe(":8080", &el) // nolint: gosec
err := http.ListenAndServe(":8081", &el) // nolint: gosec
if err != nil {
panic(err)
}
Expand Down
8 changes: 4 additions & 4 deletions listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func TestListener_Accept(t *testing.T) {
description: "simple test",
secrets: []string{"foo"},
}, {
description: "simple test",
description: "simple test accepting secrets",
opt: AcceptedSecrets("bar"),
expectBefore: []string{"bar"},
secrets: []string{"foo"},
Expand Down Expand Up @@ -447,15 +447,15 @@ func TestListener_String(t *testing.T) {
}{
{
description: "simple test",
str: "Listener()",
str: "Listener(URL(http://example.com))",
}, {
description: "simple test",
opt: AcceptedSecrets("bar"),
str: "Listener(AcceptedSecrets(***))",
str: "Listener(URL(http://example.com), AcceptedSecrets(***))",
}, {
description: "simple test",
opts: []Option{AcceptedSecrets("bar"), AcceptSHA1()},
str: "Listener(AcceptedSecrets(***), AcceptSHA1())",
str: "Listener(URL(http://example.com), AcceptedSecrets(***), AcceptSHA1())",
},
}
for _, tc := range tests {
Expand Down

0 comments on commit da3e666

Please sign in to comment.