(t *testing.T, mock *changeMock)
| 148 | } |
| 149 | |
| 150 | func newChangeTestServer(t *testing.T, mock *changeMock) *Server { |
| 151 | t.Helper() |
| 152 | s := newTestServerWithMock(t, mock.handler()) |
| 153 | s.profile.ExternalURL = "https://bytebase.example.com" |
| 154 | // Use a short poll budget to avoid 10s waits in tests. |
| 155 | s.planCheckPollBudgetOverride = 100 * time.Millisecond |
| 156 | return s |
| 157 | } |
| 158 | |
| 159 | // --- Happy path tests --- |
| 160 |
no test coverage detected