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 25, 2023
1 parent f4afcbd commit 581ce35
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 581ce35

Please sign in to comment.