Skip to content

Commit f42af07

Browse files
committed
Use NoLock variety to fix hung tests
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 6f95371 commit f42af07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,14 @@ func (q *FakeQuerier) convertToWorkspaceRowsNoLock(ctx context.Context, workspac
404404
}
405405
}
406406

407-
if pj, err := q.GetProvisionerJobByID(ctx, build.JobID); err == nil {
407+
if pj, err := q.getProvisionerJobByIDNoLock(ctx, build.JobID); err == nil {
408408
wr.LatestBuildStatus = database.NullProvisionerJobStatus{ProvisionerJobStatus: pj.JobStatus, Valid: true}
409409
}
410410

411411
wr.LatestBuildTransition = build.Transition
412412
}
413413

414-
if u, err := q.GetUserByID(ctx, w.OwnerID); err == nil {
414+
if u, err := q.getUserByIDNoLock(w.OwnerID); err == nil {
415415
wr.Username = u.Username
416416
}
417417

0 commit comments

Comments
 (0)