mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user