chore: fix (*coderdtest.WorkspaceAgentWaiter).Wait() flake (#13451)

This commit is contained in:
Colin Adler
2024-06-03 14:46:56 -05:00
committed by GitHub
parent 43ef00401c
commit e4ac691468

View File

@ -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 {