File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ import (
1010)
1111
1212// ------------------------------------------------------------------------------------------------
13- // RECOVERER TESTS
13+ // APIKEY TESTS
1414// ------------------------------------------------------------------------------------------------
1515
1616const (
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 .
2222func Test_ApiKey (t * testing.T ) {
2323 testPattern := "/test"
2424 keys := []string {
You can’t perform that action at this time.
0 commit comments