Overrides the actor token read to return a const which we can compare in our tests.
()
| 172 | // Overrides the actor token read to return a const which we can compare in |
| 173 | // our tests. |
| 174 | func overrideActorTokenGood() func() { |
| 175 | origReadActorTokenFrom := readActorTokenFrom |
| 176 | readActorTokenFrom = func(string) ([]byte, error) { |
| 177 | return []byte(actorTokenContents), nil |
| 178 | } |
| 179 | return func() { readActorTokenFrom = origReadActorTokenFrom } |
| 180 | } |
| 181 | |
| 182 | // Overrides the actor token read to always return an error. |
| 183 | func overrideActorTokenError() func() { |
no outgoing calls
no test coverage detected