(t *testing.T, cfg config.Root)
| 65 | } |
| 66 | |
| 67 | func waitAccessURL(t *testing.T, cfg config.Root) *url.URL { |
| 68 | t.Helper() |
| 69 | |
| 70 | var err error |
| 71 | var rawURL string |
| 72 | require.Eventually(t, func() bool { |
| 73 | rawURL, err = cfg.URL().Read() |
| 74 | return err == nil && rawURL != "" |
| 75 | }, testutil.WaitLong, testutil.IntervalFast, "failed to get access URL") |
| 76 | |
| 77 | accessURL, err := url.Parse(rawURL) |
| 78 | require.NoError(t, err, "failed to parse access URL") |
| 79 | |
| 80 | return accessURL |
| 81 | } |
no test coverage detected