(ctx context.Context, t *testing.T, sqlDB *sql.DB, agentID uuid.UUID)
| 7687 | } |
| 7688 | |
| 7689 | func markWorkspaceAgentDeleted(ctx context.Context, t *testing.T, sqlDB *sql.DB, agentID uuid.UUID) { |
| 7690 | t.Helper() |
| 7691 | |
| 7692 | _, err := sqlDB.ExecContext(ctx, "UPDATE workspace_agents SET deleted = TRUE WHERE id = $1", agentID) |
| 7693 | require.NoError(t, err) |
| 7694 | } |
| 7695 | |
| 7696 | type workspaceBuildAgentQueryFixture struct { |
| 7697 | Workspace database.WorkspaceTable |
no test coverage detected