Overrides the actor token read to always return an error.
()
| 181 | |
| 182 | // Overrides the actor token read to always return an error. |
| 183 | func overrideActorTokenError() func() { |
| 184 | origReadActorTokenFrom := readActorTokenFrom |
| 185 | readActorTokenFrom = func(string) ([]byte, error) { |
| 186 | return nil, errors.New("error reading actor token") |
| 187 | } |
| 188 | return func() { readActorTokenFrom = origReadActorTokenFrom } |
| 189 | } |
| 190 | |
| 191 | // compareRequest compares the http.Request received in the test with the |
| 192 | // expected requestParameters specified in wantReqParams. |
no outgoing calls
no test coverage detected