Skip to content

test(sdk-ffi): the mock SDK version seed is reachable only from Rust tests #5622

Open

Description

@shumkov

create_mock_handle_with_initial_version (packages/rs-sdk-ffi/src/sdk.rs) lets a test start a mock SDK at a chosen protocol version, but it is reachable only from Rust tests, not from C or Swift, so C and Swift tests cannot start a mock SDK at a chosen version.

Also, a mock SDK whose expectations are consumed raises its stored protocol version without recording a verified one, so mock-based tests do not follow the same version rules as a real SDK. Align the mock with the real behaviour.

Activity

  1. added this to the v5.1.0 milestone on Oct 28, 2026
  2. added
    cleanup
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanuprs-sdk

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions