mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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