newInternalTestServer creates a Server for internal tests with custom provider API keys. The server is automatically closed when the test finishes.
( t *testing.T, db database.Store, ps pubsub.Pubsub, keys chatprovider.ProviderAPIKeys, )
| 70 | // custom provider API keys. The server is automatically closed |
| 71 | // when the test finishes. |
| 72 | func newInternalTestServer( |
| 73 | t *testing.T, |
| 74 | db database.Store, |
| 75 | ps pubsub.Pubsub, |
| 76 | keys chatprovider.ProviderAPIKeys, |
| 77 | ) *Server { |
| 78 | return newInternalTestServerWithLoggerAndClock( |
| 79 | t, |
| 80 | db, |
| 81 | ps, |
| 82 | keys, |
| 83 | slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}), |
| 84 | nil, |
| 85 | ) |
| 86 | } |
| 87 | |
| 88 | func newInternalTestServerWithClock( |
| 89 | t *testing.T, |
no test coverage detected