Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
test(handler): rename the last-owner lock helper that collides with the reaction test (#11393)
pseudoyu0b625128596e
diff --git a/server/internal/handler/workspace_last_owner_test.go b/server/internal/handler/workspace_last_owner_test.goindex a96c7fbc09..a647c504b6 100644--- a/server/internal/handler/workspace_last_owner_test.go+++ b/server/internal/handler/workspace_last_owner_test.go@@ -88,7 +88,7 @@ func TestLastOwnerCheckHoldsAgainstAConcurrentDemotion(t *testing.T) {tc.run(w, tc.call(workspaceID, ownerA, memberA, ownerB))done <- w}()- waitForBackendBlockedBy(t, holderPID, done)+ waitForDemotionBlockedBy(t, holderPID, done)if err := holder.Commit(ctx); err != nil {t.Fatalf("commit holder: %v", err)@@ -107,9 +107,9 @@ func TestLastOwnerCheckHoldsAgainstAConcurrentDemotion(t *testing.T) {}}-// waitForBackendBlockedBy returns once some backend waits on a lock held by+// waitForDemotionBlockedBy returns once some backend waits on a lock held by// holderPID, failing if the request finished without waiting.-func waitForBackendBlockedBy(t *testing.T, holderPID int, done <-chan *httptest.ResponseRecorder) {+func waitForDemotionBlockedBy(t *testing.T, holderPID int, done <-chan *httptest.ResponseRecorder) {t.Helper()deadline := time.Now().Add(5 * time.Second)for time.Now().Before(deadline) {