High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
test: the legacy adapter's name assertion compares Name() to itself, so a broken Name() ships an empty solver identity (PIN-146)
Luigi Agosti05a37e4e9592
diff --git a/internal/autosolver/solvers/legacy_test.go b/internal/autosolver/solvers/legacy_test.goindex db5d3264..7e61c612 100644--- a/internal/autosolver/solvers/legacy_test.go+++ b/internal/autosolver/solvers/legacy_test.go@@ -53,8 +53,12 @@ func TestLegacyAdapterReportsItsOwnNameOnBothPaths(t *testing.T) {if result == nil {t.Fatal("Solve returned no Result to check")}- if result.SolverUsed != adapter.Name() {- t.Errorf("Result.SolverUsed = %q, want %q — the adapter must report its own identity on every path", result.SolverUsed, adapter.Name())+ // The oracle is a literal, not adapter.Name(): production reads that same+ // accessor for this field, so comparing against it pins only WHERE the+ // value comes from. A Name() returning "" satisfied the accessor form on+ // all three cases while every legacy result reported an empty identity.+ if result.SolverUsed != "legacy-cf" {+ t.Errorf("Result.SolverUsed = %q, want %q — the adapter must report its own identity on every path", result.SolverUsed, "legacy-cf")}})}