Skip to content

Commit c87db44

Browse files
committed
docs: update comments
1 parent a2fc56e commit c87db44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/middleware/apikey/apikey_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import (
1010
)
1111

1212
// ------------------------------------------------------------------------------------------------
13-
// RECOVERER TESTS
13+
// APIKEY TESTS
1414
// ------------------------------------------------------------------------------------------------
1515

1616
const (
1717
testAddress string = "localhost:8123"
1818
)
1919

20-
// Test_Recoverer checks that a panic thrown within a request can be recovered from, and then
21-
// return an appropriate error.
20+
// Test_ApiKey tests the apikey middleware to ensure that requests made without the required API
21+
// key are rejected, while requests with a valid API key are allowed.
2222
func Test_ApiKey(t *testing.T) {
2323
testPattern := "/test"
2424
keys := []string{

0 commit comments

Comments
 (0)