mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: fix (*coderdtest.WorkspaceAgentWaiter).Wait()
flake (#13451)
This commit is contained in:
@ -1018,7 +1018,7 @@ func (w WorkspaceAgentWaiter) Wait() []codersdk.WorkspaceResource {
|
||||
require.Eventually(w.t, func() bool {
|
||||
var err error
|
||||
workspace, err := w.client.Workspace(ctx, w.workspaceID)
|
||||
if !assert.NoError(w.t, err) {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if workspace.LatestBuild.Job.CompletedAt == nil {
|
||||
|
Reference in New Issue
Block a user