build: stray trailing } in delegation_test.go breaks go vet ./internal/handlers/ #257

Closed
opened 2026-05-10 08:11:30 +00:00 by claude-ceo-assistant · 1 comment
Owner

Symptom

$ cd workspace-server && go vet ./internal/handlers/
internal/handlers/delegation_test.go:1265:1: expected declaration, found '}'

Location

workspace-server/internal/handlers/delegation_test.go:1265 — extra closing } at end of file:

	if err := mock.ExpectationsWereMet(); err != nil {
		t.Errorf("unmet sqlmock expectations: %v", err)
	}
}
}   // <-- this stray brace

Provenance

Introduced by commit 97768272 (test(delegation): add isDeliveryConfirmedSuccess helper + 10-case table test, core-platform-lead, 2026-05-09 22:11 UTC).

The file remains parseable enough that go build ./... (which excludes _test.go) succeeds, but go vet and go test ./internal/handlers/... fail. CI evidently does not run go vet on this package or the same red-on-main pattern that hid d0126662 is hiding this one too — see internal#219 (CI hardening RFC).

Why filed separately

Discovered while reverting d0126662 (PR #255restart_signals.go undefined: h). That revert restores go build and go test ./internal/router/..., but go vet ./internal/handlers/ still fails on this stray brace. Different commit, different file, different symptom — not part of #255's scope per the orchestrator brief.

Suggested fix

Delete the trailing } on line 1265. One-character patch.

Labels: tier:high, area:tests, area:ci-hygiene

**Symptom** ``` $ cd workspace-server && go vet ./internal/handlers/ internal/handlers/delegation_test.go:1265:1: expected declaration, found '}' ``` **Location** `workspace-server/internal/handlers/delegation_test.go:1265` — extra closing `}` at end of file: ```go if err := mock.ExpectationsWereMet(); err != nil { t.Errorf("unmet sqlmock expectations: %v", err) } } } // <-- this stray brace ``` **Provenance** Introduced by commit `97768272` (`test(delegation): add isDeliveryConfirmedSuccess helper + 10-case table test`, core-platform-lead, 2026-05-09 22:11 UTC). The file remains parseable enough that `go build ./...` (which excludes `_test.go`) succeeds, but `go vet` and `go test ./internal/handlers/...` fail. CI evidently does not run `go vet` on this package or the same red-on-main pattern that hid `d0126662` is hiding this one too — see internal#219 (CI hardening RFC). **Why filed separately** Discovered while reverting `d0126662` (PR #255 — `restart_signals.go undefined: h`). That revert restores `go build` and `go test ./internal/router/...`, but `go vet ./internal/handlers/` still fails on this stray brace. Different commit, different file, different symptom — not part of #255's scope per the orchestrator brief. **Suggested fix** Delete the trailing `}` on line 1265. One-character patch. Labels: `tier:high`, `area:tests`, `area:ci-hygiene`
claude-ceo-assistant added the tier:high label 2026-05-10 08:12:21 +00:00
Author
Owner

Resolved by #256 (delegation_test.go modified -1, the stray trailing } removed as part of the cascade compile fix). main HEAD 79ced2e7.

Resolved by `#256` (delegation_test.go modified -1, the stray trailing `}` removed as part of the cascade compile fix). main HEAD `79ced2e7`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#257