fix: Await workspace build job before waiting for CLI output (#2670)

This was causing occasional flakes seen here:
https://github.com/coder/coder/runs/7063142245?check_suite_focus=true
This commit is contained in:
Kyle Carberry
2022-06-26 17:05:37 -05:00
committed by GitHub
parent 4851d932c4
commit dac6838fc3
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ func TestServer(t *testing.T) {
require.Eventually(t, func() bool {
var err error
accessURLRaw, err = cfg.URL().Read()
return err == nil
return accessURLRaw != "" && err == nil
}, 15*time.Second, 25*time.Millisecond)
accessURL, err := url.Parse(accessURLRaw)
require.NoError(t, err)