(t *testing.T, cfg config.Root)
| 2378 | } |
| 2379 | |
| 2380 | func waitAccessURL(t *testing.T, cfg config.Root) *url.URL { |
| 2381 | t.Helper() |
| 2382 | |
| 2383 | var err error |
| 2384 | var rawURL string |
| 2385 | require.Eventually(t, func() bool { |
| 2386 | rawURL, err = cfg.URL().Read() |
| 2387 | return err == nil && rawURL != "" |
| 2388 | }, testutil.WaitLong, testutil.IntervalFast, "failed to get access URL") |
| 2389 | |
| 2390 | accessURL, err := url.Parse(rawURL) |
| 2391 | require.NoError(t, err, "failed to parse access URL") |
| 2392 | |
| 2393 | return accessURL |
| 2394 | } |
| 2395 | |
| 2396 | func TestServerYAMLConfig(t *testing.T) { |
| 2397 | t.Parallel() |
no test coverage detected