Skip to content

test: move TestContract_Errors_MultidocBridgeAsGateway_NoLongerFails out of contract_errors_test.go #168

@lexfrei

Description

pkg/engine/contract_errors_test.go::TestContract_Errors_MultidocBridgeAsGateway_NoLongerFails is a negative pin that asserts the bridge-as-gateway path does NOT fail after PR #163 landed proper BridgeConfig emission (symmetric to BondConfig).

The test's location in contract_errors_test.go suggests an error contract; a future reader landing there will expect a fail-test and find an assert-clean-render test instead. The previous name TestContract_Errors_MultidocBridgeAsGateway did pin an error contract, then was inverted in #163 when BridgeConfig started rendering — but the file location wasn't updated.

Fix

Move the test to pkg/engine/contract_network_multidoc_test.go next to TestContract_NetworkMultidoc_BridgeConfigEmitted so the file location matches the contract being pinned. Pure file-move, no test logic change.

Reference: PR #163 review, cosmetic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testingIssues or PRs related to testing (unit, integration, e2e)kind/cleanupCategorizes issue or PR as related to cleanup of code, process, or technical debtpriority/backlogGeneral backlog priority. Lower than priority/important-longterm

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions