Skip to content

Commit

Permalink
fix(testutil): correct annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Oct 12, 2023
1 parent 1d6c70c commit 7e24130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/testutil/api.go
Expand Up @@ -70,6 +70,7 @@ func CloneVersionError(_ *fastly.CloneVersionInput) (*fastly.Version, error) {
// WhoamiVerifyClient is used by `whoami` and `sso` tests.
type WhoamiVerifyClient whoami.VerifyResponse

// Do executes the HTTP request.
func (c WhoamiVerifyClient) Do(*http.Request) (*http.Response, error) {
rec := httptest.NewRecorder()
_ = json.NewEncoder(rec).Encode(whoami.VerifyResponse(c))
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/args.go
Expand Up @@ -73,7 +73,7 @@ func (s MockAuthServer) SetAccountEndpoint(_ string) {
// no-op
}

// SetEndpoint sets the API endpoint.
// SetAPIEndpoint sets the API endpoint.
func (s MockAuthServer) SetAPIEndpoint(_ string) {
// no-op
}
Expand Down

0 comments on commit 7e24130

Please sign in to comment.